]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-config-modal/rgw-config-modal.component.spec.ts
import ceph quincy 17.2.6
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / rgw / rgw-config-modal / rgw-config-modal.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 { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
7 import { ToastrModule } from 'ngx-toastr';
8
9 import { SharedModule } from '~/app/shared/shared.module';
10 import { configureTestBed } from '~/testing/unit-test-helper';
11 import { RgwConfigModalComponent } from './rgw-config-modal.component';
12
13 describe('RgwConfigModalComponent', () => {
14 let component: RgwConfigModalComponent;
15 let fixture: ComponentFixture<RgwConfigModalComponent>;
16
17 configureTestBed({
18 declarations: [RgwConfigModalComponent],
19 imports: [
20 SharedModule,
21 ReactiveFormsModule,
22 RouterTestingModule,
23 HttpClientTestingModule,
24 ToastrModule.forRoot()
25 ],
26 providers: [NgbActiveModal]
27 });
28
29 beforeEach(() => {
30 fixture = TestBed.createComponent(RgwConfigModalComponent);
31 component = fixture.componentInstance;
32 fixture.detectChanges();
33 });
34
35 it('should create', () => {
36 expect(component).toBeTruthy();
37 });
38 });