From 5a745669bc95bc7df1be567a75261dd9e240012f Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 9 Jun 2020 14:34:57 +0530 Subject: [PATCH] chore: rm logs --- packages/webpack-cli/lib/groups/BasicGroup.js | 1 - test/entry/flag-entry/entry-with-flag.test.js | 2 +- test/entry/multiple-entries/multi-entries.test.js | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/webpack-cli/lib/groups/BasicGroup.js b/packages/webpack-cli/lib/groups/BasicGroup.js index 41a451f4b79..1db7d5c4ee9 100644 --- a/packages/webpack-cli/lib/groups/BasicGroup.js +++ b/packages/webpack-cli/lib/groups/BasicGroup.js @@ -48,7 +48,6 @@ class BasicGroup extends GroupHelper { run() { this.resolveFlags(); - console.log(this); return this.opts; } } diff --git a/test/entry/flag-entry/entry-with-flag.test.js b/test/entry/flag-entry/entry-with-flag.test.js index c92b230edd1..e4c7ab02b66 100644 --- a/test/entry/flag-entry/entry-with-flag.test.js +++ b/test/entry/flag-entry/entry-with-flag.test.js @@ -41,7 +41,7 @@ describe('entry flag', () => { it('should throw error for invalid entry file', () => { const { stderr, stdout } = run(__dirname, ['--entry', './src/test.js']); - expect(stderr).toBeFalsy(); + expect(stderr).toBeTruthy(); expect(stdout).toContain('Error: you provided an invalid entry point.'); }); }); diff --git a/test/entry/multiple-entries/multi-entries.test.js b/test/entry/multiple-entries/multi-entries.test.js index 6c39f75b37f..61d278d1760 100644 --- a/test/entry/multiple-entries/multi-entries.test.js +++ b/test/entry/multiple-entries/multi-entries.test.js @@ -6,7 +6,7 @@ const { resolve } = require('path'); describe(' multiple entries', () => { it('should allow multiple entry files', (done) => { - const { stderr, stdout } = run(__dirname, ['./src/a.js', './src/b.js', './src/c.js']); + const { stderr, stdout } = run(__dirname, ['./src/a.js', './src/b.js']); expect(stderr).toBeFalsy(); expect(stdout).toBeTruthy(); @@ -19,7 +19,6 @@ describe(' multiple entries', () => { expect(err).toBe(null); expect(data).toContain('Hello from a.js'); expect(data).toContain('Hello from b.js'); - expect(data).toContain('Hello from c.js'); done(); }); });