Skip to content

Commit c1ef6a3

Browse files
committed
a
1 parent 5a07a98 commit c1ef6a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/cli/cli.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,13 @@ describe('CLI', () => {
108108
it('--color', (done) => {
109109
testBin('--color')
110110
.then((output) => {
111-
console.log('out', output.stdout);
111+
console.log('out', output);
112112

113113
// https://github.com/webpack/webpack-dev-server/blob/master/lib/utils/colors.js
114-
expect(output.stdout).toContain('\u001b[34m⬡ wds: \u001b[39m');
114+
const text =
115+
process.platform === 'win32' ? '' : '\u001b[34m⬡ wds: \u001b[39m';
116+
117+
expect(output.stdout).toContain(text);
115118
done();
116119
})
117120
.catch(done);

0 commit comments

Comments
 (0)