Skip to content

Commit

Permalink
test(cli): add windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Apr 28, 2020
1 parent 80fd37c commit e8f54c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/cli/cli.test.js
Expand Up @@ -109,7 +109,12 @@ describe('CLI', () => {
testBin('--color')
.then((output) => {
// https://github.com/webpack/webpack-dev-server/blob/master/lib/utils/colors.js
expect(output.stdout).toContain('\u001b[34m⬡ wds: \u001b[39m');
const text =
process.platform === 'win32'
? '\u001b[94m⬡ wds: \u001b[39m'
: '\u001b[34m⬡ wds: \u001b[39m';

expect(output.stdout).toContain(text);
done();
})
.catch(done);
Expand Down

0 comments on commit e8f54c4

Please sign in to comment.