Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Nov 9, 2020
1 parent c243395 commit 97e5df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/info/info-help.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { yellow } = require('colorette');
const { green } = require('colorette');
const { runInfo } = require('../utils/test-utils');
const { commands } = require('../../packages/webpack-cli/lib/utils/cli-flags');

Expand All @@ -23,7 +23,7 @@ describe('should print help for info command', () => {
const { stdout, stderr, exitCode } = runInfo(['--help', '--no-color'], __dirname);

expect(exitCode).toBe(0);
expect(stdout).not.toContain(yellow(usageText));
expect(stdout).not.toContain(green(usageText));
expect(stdout).toContain(descriptionText);
expect(stderr).toHaveLength(0);
});
Expand Down

0 comments on commit 97e5df5

Please sign in to comment.