]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/blob
8cdd79e6549b23d067b34b03bb9a616ab73df474
[ceph-ci.git] /
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3 import { RouterTestingModule } from '@angular/router/testing';
4 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
5 import { ToastrModule } from 'ngx-toastr';
6 import { SharedModule } from '~/app/shared/shared.module';
7 import { configureTestBed } from '~/testing/unit-test-helper';
8 import { RgwZone } from '../rgw-multisite';
9
10 import { RgwMultisiteZoneDeletionFormComponent } from './rgw-multisite-zone-deletion-form.component';
11
12 describe('RgwMultisiteZoneDeletionFormComponent', () => {
13   let component: RgwMultisiteZoneDeletionFormComponent;
14   let fixture: ComponentFixture<RgwMultisiteZoneDeletionFormComponent>;
15
16   configureTestBed({
17     declarations: [RgwMultisiteZoneDeletionFormComponent],
18     imports: [SharedModule, HttpClientTestingModule, ToastrModule.forRoot(), RouterTestingModule],
19     providers: [NgbActiveModal]
20   });
21
22   beforeEach(() => {
23     fixture = TestBed.createComponent(RgwMultisiteZoneDeletionFormComponent);
24     component = fixture.componentInstance;
25     component.zone = new RgwZone();
26     fixture.detectChanges();
27   });
28
29   it('should create', () => {
30     expect(component).toBeTruthy();
31   });
32 });