]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
de6e64956a25a7650adda373d488f9421283ba41
[ceph.git] /
1 import { ComponentFixture, TestBed } from '@angular/core/testing';
2
3 import { CephfsSubvolumeListComponent } from './cephfs-subvolume-list.component';
4 import { HttpClientTestingModule } from '@angular/common/http/testing';
5 import { SharedModule } from '~/app/shared/shared.module';
6 import { ToastrModule } from 'ngx-toastr';
7 import { RouterTestingModule } from '@angular/router/testing';
8 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
9
10 describe('CephfsSubvolumeListComponent', () => {
11   let component: CephfsSubvolumeListComponent;
12   let fixture: ComponentFixture<CephfsSubvolumeListComponent>;
13
14   beforeEach(async () => {
15     await TestBed.configureTestingModule({
16       declarations: [CephfsSubvolumeListComponent],
17       imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule],
18       providers: [NgbActiveModal]
19     }).compileComponents();
20   });
21
22   beforeEach(() => {
23     fixture = TestBed.createComponent(CephfsSubvolumeListComponent);
24     component = fixture.componentInstance;
25     fixture.detectChanges();
26   });
27
28   it('should create', () => {
29     expect(component).toBeTruthy();
30   });
31 });