]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.spec.ts
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / rgw / rgw-user-swift-key-modal / rgw-user-swift-key-modal.component.spec.ts
1 import { ComponentFixture, TestBed } from '@angular/core/testing';
2 import { FormsModule } from '@angular/forms';
3 import { RouterTestingModule } from '@angular/router/testing';
4
5 import { BsModalRef } from 'ngx-bootstrap/modal';
6 import { ToastrModule } from 'ngx-toastr';
7
8 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
9 import { SharedModule } from '../../../shared/shared.module';
10 import { RgwUserSwiftKeyModalComponent } from './rgw-user-swift-key-modal.component';
11
12 describe('RgwUserSwiftKeyModalComponent', () => {
13 let component: RgwUserSwiftKeyModalComponent;
14 let fixture: ComponentFixture<RgwUserSwiftKeyModalComponent>;
15
16 configureTestBed({
17 declarations: [RgwUserSwiftKeyModalComponent],
18 imports: [ToastrModule.forRoot(), FormsModule, SharedModule, RouterTestingModule],
19 providers: [BsModalRef, i18nProviders]
20 });
21
22 beforeEach(() => {
23 fixture = TestBed.createComponent(RgwUserSwiftKeyModalComponent);
24 component = fixture.componentInstance;
25 fixture.detectChanges();
26 });
27
28 it('should create', () => {
29 expect(component).toBeTruthy();
30 });
31 });