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