]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | import { HttpClientTestingModule } from '@angular/common/http/testing'; |
2 | import { ComponentFixture, TestBed } from '@angular/core/testing'; | |
f67539c2 | 3 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
11fdf7f2 TL |
4 | import { RouterTestingModule } from '@angular/router/testing'; |
5 | ||
494da23a | 6 | import { ToastrModule } from 'ngx-toastr'; |
11fdf7f2 | 7 | |
f67539c2 TL |
8 | import { SharedModule } from '~/app/shared/shared.module'; |
9 | import { configureTestBed } from '~/testing/unit-test-helper'; | |
11fdf7f2 TL |
10 | import { MirrorHealthColorPipe } from '../mirror-health-color.pipe'; |
11 | import { PoolListComponent } from './pool-list.component'; | |
12 | ||
13 | describe('PoolListComponent', () => { | |
14 | let component: PoolListComponent; | |
15 | let fixture: ComponentFixture<PoolListComponent>; | |
16 | ||
17 | configureTestBed({ | |
18 | declarations: [PoolListComponent, MirrorHealthColorPipe], | |
19 | imports: [ | |
e306af50 | 20 | BrowserAnimationsModule, |
11fdf7f2 | 21 | SharedModule, |
11fdf7f2 TL |
22 | HttpClientTestingModule, |
23 | RouterTestingModule, | |
494da23a | 24 | ToastrModule.forRoot() |
f67539c2 | 25 | ] |
11fdf7f2 TL |
26 | }); |
27 | ||
28 | beforeEach(() => { | |
29 | fixture = TestBed.createComponent(PoolListComponent); | |
30 | component = fixture.componentInstance; | |
31 | fixture.detectChanges(); | |
32 | }); | |
33 | ||
34 | it('should create', () => { | |
35 | expect(component).toBeTruthy(); | |
36 | }); | |
37 | }); |