|
|
@@ -23,7 +23,7 @@ describe('initFactory', () => {
|
|
|
abilitiesUtils.initFactory()
|
|
|
})
|
|
|
it('should init the factory service and give access to AccessProfile service', () => {
|
|
|
- expect(abilitiesUtils.getFactory().access).toStrictEqual($accessProfile(store, ability))
|
|
|
+ expect(abilitiesUtils.getFactory().access).toStrictEqual($accessProfile(store))
|
|
|
})
|
|
|
|
|
|
it('should init the factory service and give access to OrganizationProfile service', () => {
|
|
|
@@ -165,6 +165,7 @@ describe('canHaveTheAbility()', () => {
|
|
|
|
|
|
beforeEach(() => {
|
|
|
abilitiesUtils.initFactory()
|
|
|
+ abilitiesUtils.initAbilities()
|
|
|
})
|
|
|
|
|
|
it('should return false when we dont have the ability', () => {
|