]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
d5afbc5285a03707c73c44a2877342dbafbe5aa3
[ceph-ci.git] /
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3
4 import { BsModalService } from 'ngx-bootstrap/modal';
5 import { TabsModule } from 'ngx-bootstrap/tabs';
6
7 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
8 import { CdTableSelection } from '../../../shared/models/cd-table-selection';
9 import { SharedModule } from '../../../shared/shared.module';
10 import { RgwUserDetailsComponent } from './rgw-user-details.component';
11
12 describe('RgwUserDetailsComponent', () => {
13   let component: RgwUserDetailsComponent;
14   let fixture: ComponentFixture<RgwUserDetailsComponent>;
15
16   configureTestBed({
17     declarations: [RgwUserDetailsComponent],
18     imports: [HttpClientTestingModule, SharedModule, TabsModule.forRoot()],
19     providers: [BsModalService, i18nProviders]
20   });
21
22   beforeEach(() => {
23     fixture = TestBed.createComponent(RgwUserDetailsComponent);
24     component = fixture.componentInstance;
25     component.selection = new CdTableSelection();
26     fixture.detectChanges();
27   });
28
29   it('should create', () => {
30     expect(component).toBeTruthy();
31   });
32 });