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