Skip to content

Commit 7be10d8

Browse files
committed
tests(no-options): refactor tests
1 parent 9475b17 commit 7be10d8

File tree

6 files changed

+8
-24
lines changed

6 files changed

+8
-24
lines changed

test/binCases/no-options/development/stdin.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/binCases/no-options/development/tests.opts

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/binCases/no-options/development/webpack.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use strict";
22

33
module.exports = function testAssertions(code, stdout, stderr) {
4-
expect(code).toBe(0);
4+
expect(code).toBe(2);
55
expect(stdout).toEqual(expect.anything());
6-
expect(stdout[3]).toContain("Insufficient number of arguments provided");
7-
expect(stdout[4]).toContain("Alternatively, run `webpack(-cli) --help` for usage info");
8-
expect(stderr).toHaveLength(0);
6+
expect(stderr[1]).toContain("Insufficient number of arguments or no entry found.");
7+
expect(stderr[2]).toContain("Alternatively, run 'webpack(-cli) --help' for usage info.");
8+
expect(stderr).toHaveLength(5);
99
};
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use strict";
22

33
module.exports = function testAssertions(code, stdout, stderr) {
4-
expect(code).toBe(0);
4+
expect(code).toBe(2);
55
expect(stdout).toEqual(expect.anything());
6-
expect(stdout[3]).toContain("Insufficient number of arguments provided");
7-
expect(stdout[4]).toContain("Alternatively, run `webpack(-cli) --help` for usage info");
8-
expect(stderr).toHaveLength(0);
6+
expect(stderr[1]).toContain("Insufficient number of arguments or no entry found.");
7+
expect(stderr[2]).toContain("Alternatively, run 'webpack(-cli) --help' for usage info.");
8+
expect(stderr).toHaveLength(5);
99
};

test/binCases/no-options/stdin.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)