]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
a6a2157114141f05f0148580fa7e1caacaf1256d
[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
6 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
7 import { ToastrModule } from 'ngx-toastr';
8
9 import { configureTestBed } from '~/testing/unit-test-helper';
10 import { ComponentsModule } from '~/app/shared/components/components.module';
11 import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
12 import { RbdNamespaceFormModalComponent } from './rbd-namespace-form-modal.component';
13
14 describe('RbdNamespaceFormModalComponent', () => {
15   let component: RbdNamespaceFormModalComponent;
16   let fixture: ComponentFixture<RbdNamespaceFormModalComponent>;
17
18   configureTestBed({
19     imports: [
20       ReactiveFormsModule,
21       ComponentsModule,
22       HttpClientTestingModule,
23       ToastrModule.forRoot(),
24       RouterTestingModule
25     ],
26     declarations: [RbdNamespaceFormModalComponent],
27     providers: [NgbActiveModal, AuthStorageService]
28   });
29
30   beforeEach(() => {
31     fixture = TestBed.createComponent(RbdNamespaceFormModalComponent);
32     component = fixture.componentInstance;
33     fixture.detectChanges();
34   });
35
36   it('should create', () => {
37     expect(component).toBeTruthy();
38   });
39 });