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 { ToastModule } from 'ng2-toastr';
7 import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
9 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
10 import { ApiModule } from '../../../shared/api/api.module';
11 import { ComponentsModule } from '../../../shared/components/components.module';
12 import { AuthStorageService } from '../../../shared/services/auth-storage.service';
13 import { ServicesModule } from '../../../shared/services/services.module';
14 import { RbdSnapshotFormComponent } from './rbd-snapshot-form.component';
16 describe('RbdSnapshotFormComponent', () => {
17 let component: RbdSnapshotFormComponent;
18 let fixture: ComponentFixture<RbdSnapshotFormComponent>;
24 HttpClientTestingModule,
27 ToastModule.forRoot(),
30 declarations: [RbdSnapshotFormComponent],
31 providers: [BsModalRef, BsModalService, AuthStorageService, i18nProviders]
35 fixture = TestBed.createComponent(RbdSnapshotFormComponent);
36 component = fixture.componentInstance;
37 fixture.detectChanges();
40 it('should create', () => {
41 expect(component).toBeTruthy();