Skip to content

Commit

Permalink
tests(fix): bin test outputs (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt authored and evenstensberg committed Jul 18, 2018
1 parent 87dd419 commit ca0c41f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/binCases/configFile/plugins-precedence/stdin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
module.exports = function testAssertions(code, stdout, stderr) {
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
expect(stdout[7]).toContain("ok.js");
expect(stdout[8]).toContain("ok.js");
expect(stderr).toHaveLength(0);
};
4 changes: 2 additions & 2 deletions test/binCases/entry/multi-file/stdin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module.exports = function testAssertions(code, stdout, stderr) {
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
expect(stdout[5]).toContain("null.js");
expect(stdout[7]).toMatch(/a\.js.*\{0\}/);
expect(stdout[7]).toMatch(/multi.*index\.js.*a\.js/); // should have multi-file entry
expect(stdout[8]).toMatch(/index\.js.*\{0\}/);
expect(stdout[9]).toMatch(/multi.*index\.js.*a\.js/); // should have multi-file entry
expect(stdout[9]).toMatch(/a\.js.*\{0\}/);
expect(stderr).toHaveLength(0);
};
8 changes: 4 additions & 4 deletions test/binCases/entry/named-entry/stdin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
module.exports = function testAssertions(code, stdout, stderr) {
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
expect(stdout[5]).toContain("null.js");
expect(stdout[6]).toContain("foo.js"); // named entry from --entry foo=./a.js
expect(stdout[9]).toMatch(/index\.js.*\{0\}/);
expect(stdout[10]).toMatch(/a\.js.*\{1\}/);
expect(stdout[5]).toContain("foo.js"); // named entry from --entry foo=./a.js
expect(stdout[6]).toContain("null.js");
expect(stdout[9]).toMatch(/a\.js.*\{0\}/);
expect(stdout[10]).toMatch(/index\.js.*\{1\}/);
expect(stderr).toHaveLength(0);
};

0 comments on commit ca0c41f

Please sign in to comment.