]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
9407290f31688aeae9a2cb740d9fc7a9aaa4e91d
[ceph-ci.git] /
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3
4 import { CephfsSubvolumeFormComponent } from './cephfs-subvolume-form.component';
5 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
6 import { ToastrModule } from 'ngx-toastr';
7 import { SharedModule } from '~/app/shared/shared.module';
8 import { RouterTestingModule } from '@angular/router/testing';
9 import { ReactiveFormsModule } from '@angular/forms';
10
11 describe('CephfsSubvolumeFormComponent', () => {
12   let component: CephfsSubvolumeFormComponent;
13   let fixture: ComponentFixture<CephfsSubvolumeFormComponent>;
14
15   beforeEach(async () => {
16     await TestBed.configureTestingModule({
17       declarations: [CephfsSubvolumeFormComponent],
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(CephfsSubvolumeFormComponent);
31     component = fixture.componentInstance;
32     component.pools = [];
33     fixture.detectChanges();
34   });
35
36   it('should create', () => {
37     expect(component).toBeTruthy();
38   });
39 });