Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Add missing mock for checking yarn install to test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhammerl committed Dec 3, 2018
1 parent 5f2f884 commit f4a5456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/modules/node-yarnaudit/__tests__/yarnaudit-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('yarn audit Module', () => {
let fm

beforeEach(() => {
sinon.stub(exec, 'exists').resolves(true)
sinon.stub(exec, 'command').withArgs('yarn audit --json').resolves({ stdout: sample })
fm = new FileManager({ target })
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('yarn outdated Module', () => {
let fm

beforeEach(() => {
sinon.stub(exec, 'exists').resolves(true)
sinon.stub(exec, 'command').resolves({ stdout: sample })
fm = new FileManager({ target })
})
Expand Down

0 comments on commit f4a5456

Please sign in to comment.