]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
8850fc71f93cf6f0c9a8627d8d8ec4f69b76739b
[ceph.git] /
1 import { ComponentFixture, TestBed } from '@angular/core/testing';
2 import { FormsModule } from '@angular/forms';
3 import { RouterTestingModule } from '@angular/router/testing';
4
5 import { ToastModule } from 'ng2-toastr';
6 import { BsModalRef } from 'ngx-bootstrap/modal';
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: [ToastModule.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 });