]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
cf9993bfdfb1229f67ef861c25d22170c72e6053
[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 import { configureTestBed } from '~/testing/unit-test-helper';
11
12 describe('CephfsSubvolumegroupFormComponent', () => {
13   let component: CephfsSubvolumegroupFormComponent;
14   let fixture: ComponentFixture<CephfsSubvolumegroupFormComponent>;
15
16   configureTestBed({
17     declarations: [CephfsSubvolumegroupFormComponent],
18     providers: [NgbActiveModal],
19     imports: [
20       SharedModule,
21       ToastrModule.forRoot(),
22       ReactiveFormsModule,
23       HttpClientTestingModule,
24       RouterTestingModule
25     ]
26   });
27
28   beforeEach(() => {
29     fixture = TestBed.createComponent(CephfsSubvolumegroupFormComponent);
30     component = fixture.componentInstance;
31     component.pools = [];
32     fixture.detectChanges();
33   });
34
35   it('should create', () => {
36     expect(component).toBeTruthy();
37   });
38 });