Skip to content

Commit 66bcfcf

Browse files
committed
chore: fixes eslint
1 parent f2d7e17 commit 66bcfcf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/casl-ability/spec/ability.spec.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ describe('Ability', () => {
745745
it('returns all actions including aliases associated with provided subject type', () => {
746746
const resolveAction = createAliasResolver({
747747
modify: ['read', 'update']
748-
});
749-
ability = defineAbility((can) => can('modify', 'Post'), { resolveAction });
748+
})
749+
ability = defineAbility(can => can('modify', 'Post'), { resolveAction })
750750

751751
expect(ability.actionsFor('Post')).to.deep.equal([
752752
'modify',
@@ -768,9 +768,7 @@ describe('Ability', () => {
768768
})
769769

770770
it('returns actions associated with "all" subject type if there is no actions for provided one', () => {
771-
ability = defineAbility((can) => {
772-
can('read', 'all')
773-
})
771+
ability = defineAbility(can => can('read', 'all'))
774772

775773
expect(ability.actionsFor('Post')).to.deep.equal([
776774
'read',

0 commit comments

Comments
 (0)