]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
0e162944a6a855adb08443828b7cd321a15d7246
[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 { ModalModule, TabsModule } from 'ngx-bootstrap';
6
7 import { RgwBucketService } from '../../../shared/api/rgw-bucket.service';
8 import { SharedModule } from '../../../shared/shared.module';
9 import { configureTestBed } from '../../../shared/unit-test-helper';
10 import { RgwBucketDetailsComponent } from '../rgw-bucket-details/rgw-bucket-details.component';
11 import { RgwBucketListComponent } from './rgw-bucket-list.component';
12
13 describe('RgwBucketListComponent', () => {
14   let component: RgwBucketListComponent;
15   let fixture: ComponentFixture<RgwBucketListComponent>;
16
17   configureTestBed({
18     declarations: [RgwBucketListComponent, RgwBucketDetailsComponent],
19     imports: [
20       RouterTestingModule,
21       ModalModule.forRoot(),
22       SharedModule,
23       TabsModule.forRoot(),
24       HttpClientTestingModule
25     ],
26     providers: [RgwBucketService]
27   });
28
29   beforeEach(() => {
30     fixture = TestBed.createComponent(RgwBucketListComponent);
31     component = fixture.componentInstance;
32     fixture.detectChanges();
33   });
34
35   it('should create', () => {
36     expect(component).toBeTruthy();
37   });
38 });