Commit 88538e9c authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): spec tests

1 merge request!581WIP: Permissions
Pipeline #88219731 passed with stages
in 55 minutes and 16 seconds
......@@ -16,6 +16,10 @@ import { sessionMock } from '../../../tests/session-mock.spec';
import { RouterTestingModule } from '@angular/router/testing';
import { LoginReferrerService } from '../../services/login-referrer.service';
import { loginReferrerServiceMock } from '../../mocks/services/login-referrer-service-mock.spec';
import { FeaturesService } from '../../services/features.service';
import { featuresServiceMock } from '../../../tests/features-service-mock.spec';
import { PermissionsService } from '../../common/services/permissions/permissions.service';
import { MockService } from '../../utils/mock';
describe('GroupsJoinButton', () => {
let fixture: ComponentFixture<GroupsJoinButton>;
......@@ -63,11 +67,21 @@ describe('GroupsJoinButton', () => {
{ provide: Session, useValue: sessionMock },
{ provide: GroupsService, deps: [clientMock, uploadMock] },
{ provide: LoginReferrerService, useValue: loginReferrerServiceMock },
{
provide: FeaturesService,
useValue: featuresServiceMock,
},
{
provide: PermissionsService,
useValue: MockService(PermissionsService),
},
],
}).compileComponents();
}));
beforeEach(() => {
featuresServiceMock.mock('permissions', false);
fixture = TestBed.createComponent(GroupsJoinButton);
comp = fixture.componentInstance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment