forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlogout-page.component.spec.ts
More file actions
42 lines (36 loc) · 1.13 KB
/
Copy pathlogout-page.component.spec.ts
File metadata and controls
42 lines (36 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { NO_ERRORS_SCHEMA } from '@angular/core';
import {
ComponentFixture,
TestBed,
waitForAsync,
} from '@angular/core/testing';
import { provideMockStore } from '@ngrx/store/testing';
import { TranslateModule } from '@ngx-translate/core';
import { LocaleService } from '../core/locale/locale.service';
import { LogoutPageComponent } from './logout-page.component';
describe('LogoutPageComponent', () => {
let comp: LogoutPageComponent;
let fixture: ComponentFixture<LogoutPageComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
TranslateModule.forRoot(),
LogoutPageComponent,
],
providers: [
{ provide: LocaleService, useValue: { getCurrentLanguageCode: () => 'en' } },
provideMockStore(),
],
schemas: [NO_ERRORS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(LogoutPageComponent);
comp = fixture.componentInstance; // SearchPageComponent test instance
fixture.detectChanges();
});
it('should create instance', () => {
expect(comp).toBeDefined();
});
});