Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 30, 2020
1 parent 4345b38 commit a9ab3fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/build-errors/errors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ describe('errors', () => {
const { exitCode, stderr, stdout } = run(__dirname, ['--json', 'stats.json']);

expect(exitCode).toBe(1);
expect(stderr).toBeFalsy();
expect(stdout).toContain('stats are successfully stored as json to stats.json');
expect(stderr).toContain('stats are successfully stored as json to stats.json');
expect(stdout).toBeFalsy();

readFile(resolve(__dirname, 'stats.json'), 'utf-8', (error, data) => {
expect(error).toBe(null);
Expand Down
5 changes: 2 additions & 3 deletions test/build-warnings/warnings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ describe('warnings', () => {
const { exitCode, stderr, stdout } = run(__dirname, ['--json', 'stats.json']);

expect(exitCode).toBe(0);
expect(stderr).toBeFalsy();
expect(stdout).toContain('stats are successfully stored as json to stats.json');

expect(stderr).toContain('stats are successfully stored as json to stats.json');
expect(stdout).toBeFalsy();
expect(existsSync(resolve(__dirname, './stats.json'))).toBeTruthy();

readFile(resolve(__dirname, 'stats.json'), 'utf-8', (error, data) => {
Expand Down

0 comments on commit a9ab3fb

Please sign in to comment.