Skip to content

Commit

Permalink
add test for bin command
Browse files Browse the repository at this point in the history
  • Loading branch information
voxsim committed Mar 7, 2017
1 parent 7de0066 commit da0bc53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,9 @@ if (process.platform !== 'win32') {
expect(stdout[stdout.length - 2]).toEqual('A message from custom script with args --help');
});
}

test.concurrent('should run bin command', async () => {
const stdout = await execCommand('bin', [], '', false);
expect(stdout[0]).toEqual(path.join(fixturesLoc, 'node_modules', '.bin'));
expect(stdout.length).toEqual(1);
});

0 comments on commit da0bc53

Please sign in to comment.