Skip to content

Commit

Permalink
fix(aurelia): fixes tests in aurelia to properly check ability rules …
Browse files Browse the repository at this point in the history
…for emptiness
  • Loading branch information
stalniy committed Mar 21, 2018
1 parent 3ce8b4e commit 10d790a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/casl-aurelia/spec/plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('CASL Aurelia plugin', () => {
ability = component.container.get(Ability)

expect(ability).to.be.instanceof(Ability)
expect(ability.rules).to.be.undefined
expect(ability.rules).to.be.empty
})

it('allows to check abilities using `can` value converter', () => {
Expand Down

0 comments on commit 10d790a

Please sign in to comment.