Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [
ClarityModule.forRoot()
],
declarations: [
PageTemplateSignedOutComponent,
],
providers: [
{
provide: ServerConfigService,
useValue: new ServerConfigServiceStub({
gsuiteDomain: 'fake-research-aou.org'
})
},
]
}).compileComponents().then(() => {
fixture = TestBed.createComponent(PageTemplateSignedOutComponent);
tick();
});
beforeEach(async(() =>
TestBed.configureTestingModule({
imports: [
ClarityModule.forRoot(),
ReactiveFormsModule,
],
declarations: [EditModalComponent],
providers: [
{ provide: Router, useClass: RouterStub },
{ provide: CohortsService, useClass: CohortsServiceStub },
{ provide: ConceptSetsService },
{
provide: ActivatedRoute,
deps: [CohortsServiceStub],
useClass: ActivatedRouteStub
},
CohortsServiceStub,
]
}).compileComponents()
));
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
imports: [
ClarityModule.forRoot(),
ROUTING
],
providers: [{provide: APP_BASE_HREF, useValue: '/'}]
});
fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
compiled = fixture.nativeElement;
});
beforeEach(fakeAsync(() => {
profileServiceStub = new ProfileServiceStub();
TestBed.configureTestingModule({
imports: [
FormsModule,
ClarityModule.forRoot()
],
declarations: [
LoginComponent,
AccountCreationComponent,
AccountCreationSuccessComponent,
InvitationKeyComponent,
PageTemplateSignedOutComponent,
RoutingSpinnerComponent
],
providers: [
{ provide: LoginComponent, useValue: {}},
{ provide: SignInService, useValue: {}},
{ provide: ProfileService, useValue: profileServiceStub },
{
provide: ServerConfigService,
useValue: new ServerConfigServiceStub({
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [
FormsModule,
ClarityModule.forRoot()
],
declarations: [
LoginComponent,
AccountCreationComponent,
AccountCreationSuccessComponent,
InvitationKeyComponent,
PageTemplateSignedOutComponent
],
providers: [
{ provide: LoginComponent, useValue: {}},
{ provide: InvitationKeyComponent, useValue: {}},
{ provide: ProfileService, useValue: new ProfileServiceStub() },
]
}).compileComponents().then(() => {
fixture = TestBed.createComponent(AccountCreationComponent);
tick();
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [
FormsModule,
ClarityModule.forRoot()
],
declarations: [
AdminReviewWorkspaceComponent,
BugReportComponent
],
providers: [
{ provide: ProfileService, useValue: new ProfileServiceStub() },
{ provide: ProfileStorageService, useValue: new ProfileStorageServiceStub() },
{
provide: ServerConfigService,
useValue: new ServerConfigServiceStub({
gsuiteDomain: 'fake-research-aou.org'
})
},
{ provide: WorkspacesService, useValue: new WorkspacesServiceStub() }
]
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
ClarityModule.forRoot()
],
declarations: [
InitialErrorComponent,
],
providers: [
{
provide: ServerConfigService,
useValue: new ServerConfigServiceStub({
gsuiteDomain: 'fake-research-aou.org'
})
},
]
}).compileComponents().then(() => {
fixture = TestBed.createComponent(InitialErrorComponent);
tick();
});
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [
FormsModule,
ClarityModule.forRoot(),
RouterTestingModule.withRoutes([{
path: 'workspaces/:ns/:wsid',
component: WorkspaceNavBarComponent,
data: {
workspace: {
...WorkspacesServiceStub.stubWorkspace(),
accessLevel: WorkspaceAccessLevel.OWNER,
}
},
children: [
{
path: '',
component: FakeAboutComponent,
},
{
path: 'clone',
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [
ClarityModule.forRoot()
],
declarations: [
ErrorHandlerComponent,
],
providers: [
{provide: ErrorHandlingService, useValue: new ErrorHandlingServiceStub()},
{
provide: ServerConfigService,
useValue: new ServerConfigServiceStub({
gsuiteDomain: 'fake-research-aou.org'
})
},
{provide: StatusCheckService, useValue: new StatusCheckServiceStub()}
]
}).compileComponents().then(() => {
fixture = TestBed.createComponent(ErrorHandlerComponent);
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [
FormsModule,
RouterTestingModule,
ClarityModule.forRoot()
],
declarations: [
BreadcrumbComponent,
BugReportComponent,
SignedInComponent,
RoutingSpinnerComponent
],
providers: [
{provide: BugReportService, useValue: new BugReportServiceStub()},
{provide: ErrorHandlingService, useValue: new ErrorHandlingServiceStub()},
{provide: ProfileStorageService, useValue: new ProfileStorageServiceStub()},
{
provide: ServerConfigService,
useValue: new ServerConfigServiceStub({
gsuiteDomain: 'fake-research-aou.org'
})