Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Oct 11, 2020
1 parent 101929d commit 231e62e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/build-warnings/src/index.js
@@ -1,9 +1,9 @@
let module;
let obj;

try {
module = require('unknown');
obj = require('unknown');
} catch (e) {
// Ignore
}

export default module
export default obj
2 changes: 0 additions & 2 deletions test/build-warnings/warnings.test.js
Expand Up @@ -7,8 +7,6 @@ describe('warnings', () => {
it('should output by default', () => {
const { stdout, exitCode } = run(__dirname);

console.log(stdout);

expect(stdout).toMatch(/WARNING in/);
expect(stdout).toMatch(/Error: Can't resolve/);
expect(exitCode).toBe(0);
Expand Down

0 comments on commit 231e62e

Please sign in to comment.