]> git.proxmox.com Git - ceph.git/blame - 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
CommitLineData
11fdf7f2
TL
1import { ComponentFixture, TestBed } from '@angular/core/testing';
2import { FormsModule } from '@angular/forms';
3import { RouterTestingModule } from '@angular/router/testing';
4
11fdf7f2 5import { BsModalRef } from 'ngx-bootstrap/modal';
494da23a 6import { ToastrModule } from 'ngx-toastr';
11fdf7f2
TL
7
8import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
9import { SharedModule } from '../../../shared/shared.module';
10import { RgwUserSwiftKeyModalComponent } from './rgw-user-swift-key-modal.component';
11
12describe('RgwUserSwiftKeyModalComponent', () => {
13 let component: RgwUserSwiftKeyModalComponent;
14 let fixture: ComponentFixture<RgwUserSwiftKeyModalComponent>;
15
16 configureTestBed({
17 declarations: [RgwUserSwiftKeyModalComponent],
494da23a 18 imports: [ToastrModule.forRoot(), FormsModule, SharedModule, RouterTestingModule],
11fdf7f2
TL
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});