Skip to content

Commit

Permalink
chore(webpack-cli): remove the unused eslint comment and console stat…
Browse files Browse the repository at this point in the history
…ement
  • Loading branch information
Mistyyyy committed Mar 5, 2020
1 parent c9eac20 commit 9f84700
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ const { run, extractSummary } = require('../../../utils/test-utils');

describe('single entry with entry in config', () => {
it('should use config entry if config entry existed', done => {
const { stdout, stderr } = run(__dirname, ['-c', '../1.js'], false);
const { stdout } = run(__dirname, ['-c', '../1.js'], false);
const summary = extractSummary(stdout);
const outputDir = 'entry-with-config/binary';
// eslint-disable-next-line quotes
expect(summary['Output Directory']).toContain(outputDir);

// eslint-disable-next-line quotes
console.log(stderr);
expect(stdout).toContain('./a.js');
stat(resolve(__dirname, './binary/index.bundle.js'), (err, stats) => {
expect(err).toBeFalsy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ describe('single entry with entry in config', () => {
const { stdout } = run(__dirname, ['-c', '../1.js', '../index.js'], false);
const summary = extractSummary(stdout);
const outputDir = 'entry-without-config/binary';
// eslint-disable-next-line quotes
expect(summary['Output Directory']).toContain(outputDir);

// eslint-disable-next-line quotes
expect(stdout).toContain('./index.js');
stat(resolve(__dirname, './binary/main.bundle.js'), (err, stats) => {
expect(err).toBeFalsy();
Expand Down

0 comments on commit 9f84700

Please sign in to comment.