]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form.component.spec.ts
import ceph nautilus 14.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / rbd-snapshot-form / rbd-snapshot-form.component.spec.ts
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 { ToastModule } from 'ng2-toastr';
7 import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
8
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 { RbdSnapshotFormComponent } from './rbd-snapshot-form.component';
14
15 describe('RbdSnapshotFormComponent', () => {
16 let component: RbdSnapshotFormComponent;
17 let fixture: ComponentFixture<RbdSnapshotFormComponent>;
18
19 configureTestBed({
20 imports: [
21 ReactiveFormsModule,
22 ComponentsModule,
23 HttpClientTestingModule,
24 ApiModule,
25 ToastModule.forRoot(),
26 RouterTestingModule
27 ],
28 declarations: [RbdSnapshotFormComponent],
29 providers: [BsModalRef, BsModalService, AuthStorageService, i18nProviders]
30 });
31
32 beforeEach(() => {
33 fixture = TestBed.createComponent(RbdSnapshotFormComponent);
34 component = fixture.componentInstance;
35 fixture.detectChanges();
36 });
37
38 it('should create', () => {
39 expect(component).toBeTruthy();
40 });
41 });