style(stderr): use chalkStderr instead of cherr

This commit is contained in:
Pavel Lang 2018-12-28 04:12:58 +01:00
parent 5fd274a799
commit f29eaaec43
No known key found for this signature in database
GPG key ID: 623A223A57974B55
4 changed files with 23 additions and 23 deletions

View file

@ -1,6 +1,6 @@
// @flow
import chalk from '..';
import cherr from '../stderr';
import chalkStderr from '../stderr';
// $ExpectError (Can't have typo in option name)
chalk.constructor({levl: 1});
@ -15,8 +15,8 @@ chalk.underline(null);
chalk.underline('foo');
// $ExpectError (Can't pass in null)
cherr.underline(null);
cherr.underline('foo');
chalkStderr.underline(null);
chalkStderr.underline('foo');
// $ExpectError (Can't have typo in chalk method)
chalk.rd('foo');