Skip to content

Commit

Permalink
style: fixes eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Aug 17, 2021
1 parent 06d2308 commit cf1da73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/casl-ability/spec/ability.spec.js
Expand Up @@ -241,7 +241,7 @@ describe('Ability', () => {
})

it('can unregister last handler', () => {
let results = []
const results = []
const handlers = [
spy(() => results.push(0)),
spy(() => results.push(1)),
Expand All @@ -252,7 +252,7 @@ describe('Ability', () => {
unsubscribe[0] = ability.on('updated', handlers[0])
unsubscribe[1] = ability.on('updated', handlers[1])
unsubscribe[2] = ability.on('updated', handlers[2])
unsubscribe[2]();
unsubscribe[2]()
ability.update([])

expect(results).to.deep.equal([1, 0])
Expand Down

0 comments on commit cf1da73

Please sign in to comment.