File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/casl-ability/spec Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments