Skip to content

Commit

Permalink
fix: Change test values to avoid false result
Browse files Browse the repository at this point in the history
The test should override the previous rule call, but just to be sure and
to make the test clearer it is renamed.
  • Loading branch information
mblarsen committed Dec 13, 2018
1 parent df03a54 commit 1162b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Acl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ describe('The basics', () => {
expect(acl.can({ isAdmin: false }, 'purgeInactive')).toBe(false)
acl.rule('contact')
expect(acl.can({}, 'contact')).toBe(true)
acl.rule('contact', false)
expect(acl.can({}, 'contact')).toBe(false)
acl.rule('linger', false)
expect(acl.can({}, 'linger')).toBe(false)
acl.rule('pillage', false)
expect(acl.can({}, 'pillage')).toBe(false)
})
Expand Down

0 comments on commit 1162b86

Please sign in to comment.