]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
426c912c859a5ac1892591874d131dcfc42d5c4e
[ceph.git] /
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3 import { RouterTestingModule } from '@angular/router/testing';
4
5 import { TabsModule } from 'ngx-bootstrap/tabs';
6 import { ToastrModule } from 'ngx-toastr';
7
8 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
9 import { TaskListService } from '../../../shared/services/task-list.service';
10 import { SharedModule } from '../../../shared/shared.module';
11 import { RbdTabsComponent } from '../rbd-tabs/rbd-tabs.component';
12 import { RbdNamespaceListComponent } from './rbd-namespace-list.component';
13
14 describe('RbdNamespaceListComponent', () => {
15   let component: RbdNamespaceListComponent;
16   let fixture: ComponentFixture<RbdNamespaceListComponent>;
17
18   configureTestBed({
19     declarations: [RbdNamespaceListComponent, RbdTabsComponent],
20     imports: [
21       SharedModule,
22       HttpClientTestingModule,
23       RouterTestingModule,
24       ToastrModule.forRoot(),
25       TabsModule.forRoot()
26     ],
27     providers: [TaskListService, i18nProviders]
28   });
29
30   beforeEach(() => {
31     fixture = TestBed.createComponent(RbdNamespaceListComponent);
32     component = fixture.componentInstance;
33     fixture.detectChanges();
34   });
35
36   it('should create', () => {
37     expect(component).toBeTruthy();
38   });
39 });