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