]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.spec.ts
65b7102c8698f1605aeac0e70f7eaa5f8a4845b5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / rgw / rgw-daemon-list / rgw-daemon-list.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 { TabsModule } from 'ngx-bootstrap/tabs';
6
7 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
8 import { SharedModule } from '../../../shared/shared.module';
9 import { PerformanceCounterModule } from '../../performance-counter/performance-counter.module';
10 import { RgwDaemonDetailsComponent } from '../rgw-daemon-details/rgw-daemon-details.component';
11 import { RgwDaemonListComponent } from './rgw-daemon-list.component';
12
13 describe('RgwDaemonListComponent', () => {
14 let component: RgwDaemonListComponent;
15 let fixture: ComponentFixture<RgwDaemonListComponent>;
16
17 configureTestBed({
18 declarations: [RgwDaemonListComponent, RgwDaemonDetailsComponent],
19 imports: [
20 HttpClientTestingModule,
21 TabsModule.forRoot(),
22 PerformanceCounterModule,
23 SharedModule,
24 RouterTestingModule
25 ],
26 providers: i18nProviders
27 });
28
29 beforeEach(() => {
30 fixture = TestBed.createComponent(RgwDaemonListComponent);
31 component = fixture.componentInstance;
32 fixture.detectChanges();
33 });
34
35 it('should create', () => {
36 expect(component).toBeTruthy();
37 });
38 });