Skip to content

Commit

Permalink
test: add test for standard
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed Feb 7, 2020
1 parent 1c97244 commit d8ff17a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/standard/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Test");
13 changes: 13 additions & 0 deletions test/standard/standard.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const { run } = require('../utils/test-utils');

describe('standard flag', () => {
it('should print standard output', () => {
const { stdout, stderr } = run(__dirname, ['--standard']);
expect(stdout).toBeTruthy();
expect(stdout).toContain('Hash');
expect(stdout).toContain('Version');
expect(stdout).toContain('Built at');
expect(stdout).toContain('Time');
expect(stderr).toBeFalsy();
});
});

0 comments on commit d8ff17a

Please sign in to comment.