]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
ec3c052e4d177424f79a49d01aadbdd36866d30a
[ceph-ci.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 { RgwMultisiteRealmFormComponent } from './rgw-multisite-realm-form.component';
10
11 describe('RgwMultisiteRealmFormComponent', () => {
12   let component: RgwMultisiteRealmFormComponent;
13   let fixture: ComponentFixture<RgwMultisiteRealmFormComponent>;
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: [RgwMultisiteRealmFormComponent]
26     }).compileComponents();
27   });
28
29   beforeEach(() => {
30     fixture = TestBed.createComponent(RgwMultisiteRealmFormComponent);
31     component = fixture.componentInstance;
32     fixture.detectChanges();
33   });
34
35   it('should create', () => {
36     expect(component).toBeTruthy();
37   });
38 });