]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.spec.ts
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / rbd-images / rbd-images.component.spec.ts
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 { ToastModule } from 'ng2-toastr';
6 import { TabsModule } from 'ngx-bootstrap/tabs';
7 import { TooltipModule } from 'ngx-bootstrap/tooltip';
8
9 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
10 import { TaskListService } from '../../../shared/services/task-list.service';
11 import { SharedModule } from '../../../shared/shared.module';
12 import { RbdConfigurationListComponent } from '../rbd-configuration-list/rbd-configuration-list.component';
13 import { RbdDetailsComponent } from '../rbd-details/rbd-details.component';
14 import { RbdListComponent } from '../rbd-list/rbd-list.component';
15 import { RbdSnapshotListComponent } from '../rbd-snapshot-list/rbd-snapshot-list.component';
16 import { RbdTrashListComponent } from '../rbd-trash-list/rbd-trash-list.component';
17 import { RbdImagesComponent } from './rbd-images.component';
18
19 describe('RbdImagesComponent', () => {
20 let component: RbdImagesComponent;
21 let fixture: ComponentFixture<RbdImagesComponent>;
22
23 configureTestBed({
24 declarations: [
25 RbdDetailsComponent,
26 RbdImagesComponent,
27 RbdListComponent,
28 RbdSnapshotListComponent,
29 RbdTrashListComponent,
30 RbdConfigurationListComponent
31 ],
32 imports: [
33 HttpClientTestingModule,
34 RouterTestingModule,
35 SharedModule,
36 TabsModule.forRoot(),
37 ToastModule.forRoot(),
38 TooltipModule.forRoot()
39 ],
40 providers: [TaskListService, i18nProviders]
41 });
42
43 beforeEach(() => {
44 fixture = TestBed.createComponent(RbdImagesComponent);
45 component = fixture.componentInstance;
46 fixture.detectChanges();
47 });
48
49 it('should create', () => {
50 expect(component).toBeTruthy();
51 });
52 });