Skip to content

Commit

Permalink
fix: update test case for 'fail-on-non-existent' scenario, the 'passe…
Browse files Browse the repository at this point in the history
…d' of non-exist file should depend on the parameter.
  • Loading branch information
Neil Zhao committed Sep 26, 2022
1 parent 9831684 commit e31bfb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/rules/file_contents_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('rule', () => {
const actual = await fileContents(mockfs, ruleopts)
expect(actual.passed).to.equal(true)
expect(actual.targets).to.have.length(1)
expect(actual.targets[0].passed).to.equal(false)
expect(actual.targets[0].passed).to.equal(true)
expect(actual.targets[0].pattern).to.equal(ruleopts.globsAll[0])
})

Expand Down

0 comments on commit e31bfb3

Please sign in to comment.