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