Skip to content
Snippets Groups Projects
Commit e2a2494d authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Add missing test

parent a8a7faef
No related branches found
No related tags found
2 merge requests!29Develop,!16Resolve "Add tests for portal module"
...@@ -109,4 +109,11 @@ describe('PortalHomeComponent', () => { ...@@ -109,4 +109,11 @@ describe('PortalHomeComponent', () => {
expect(spy).toHaveBeenCalledTimes(1); expect(spy).toHaveBeenCalledTimes(1);
expect(spy).toHaveBeenCalledWith(authActions.openEditProfile()); expect(spy).toHaveBeenCalledWith(authActions.openEditProfile());
}); });
it('should unsubscribe to user roles when component is destroyed', () => {
component.userRolesSubscription = of().subscribe();
const spy = jest.spyOn(component.userRolesSubscription, 'unsubscribe');
component.ngOnDestroy();
expect(spy).toHaveBeenCalledTimes(1);
});
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment