blob: 85f8d3f81db60bacbf34b95f8bc1b81dec7e2465 (
plain)
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
|
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
import { ToastrModule } from 'ngx-toastr';
import { TaskListService } from '~/app/shared/services/task-list.service';
import { SharedModule } from '~/app/shared/shared.module';
import { configureTestBed } from '~/testing/unit-test-helper';
import { RbdTabsComponent } from '../rbd-tabs/rbd-tabs.component';
import { RbdNamespaceListComponent } from './rbd-namespace-list.component';
describe('RbdNamespaceListComponent', () => {
let component: RbdNamespaceListComponent;
let fixture: ComponentFixture<RbdNamespaceListComponent>;
configureTestBed({
declarations: [RbdNamespaceListComponent, RbdTabsComponent],
imports: [
BrowserAnimationsModule,
SharedModule,
HttpClientTestingModule,
RouterTestingModule,
ToastrModule.forRoot(),
NgbNavModule
],
providers: [TaskListService]
});
beforeEach(() => {
fixture = TestBed.createComponent(RbdNamespaceListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
|