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';
6 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
7 import { ToastrModule } from 'ngx-toastr';
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';
14 describe('RbdNamespaceFormModalComponent', () => {
15 let component: RbdNamespaceFormModalComponent;
16 let fixture: ComponentFixture<RbdNamespaceFormModalComponent>;
22 HttpClientTestingModule,
23 ToastrModule.forRoot(),
26 declarations: [RbdNamespaceFormModalComponent],
27 providers: [NgbActiveModal, AuthStorageService]
31 fixture = TestBed.createComponent(RbdNamespaceFormModalComponent);
32 component = fixture.componentInstance;
33 fixture.detectChanges();
36 it('should create', () => {
37 expect(component).toBeTruthy();