Skip to content

Commit

Permalink
chore(__tests__/tests.ts) try to remove a not existing user
Browse files Browse the repository at this point in the history
  • Loading branch information
rimiti committed May 2, 2019
1 parent 8ff9906 commit 95a7a28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __tests__/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,11 @@ import * as Aclify from '../src';
const isAllowedAfterRemoveUser = await acl.isAllowed('dimitri', 'panel', 'edit');
expect(isAllowedAfterRemoveUser).toBeFalsy();
});

it('Remove a not existing user', async () => {
const removeUser = await acl.removeUser('notExisting');
expect(removeUser).toBeUndefined();
});
});
});
});

0 comments on commit 95a7a28

Please sign in to comment.