Convert model-auth service

pull/6346/head
Oliver Günther 6 years ago
parent 2f48e8c46d
commit 38f0f5ee76
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 8
      frontend/src/app/modules/common/model-auth/model-auth.service.spec.ts

@ -41,13 +41,13 @@ describe('authorisationService', function() {
});
it('should allow action', function() {
expect(authorisationService.can('query', 'create')).to.be.true;
expect(authorisationService.cannot('query', 'create')).to.be.false;
expect(authorisationService.can('query', 'create')).toBeTruthy();
expect(authorisationService.cannot('query', 'create')).toBeFalsy();
});
it('should not allow action', function() {
expect(authorisationService.can('query', 'delete')).to.be.false;
expect(authorisationService.cannot('query', 'delete')).to.be.true;
expect(authorisationService.can('query', 'delete')).toBeFalsy();
expect(authorisationService.cannot('query', 'delete')).toBeTruthy();
});
});
});
Loading…
Cancel
Save