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