]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | import { ComponentFixture, TestBed } from '@angular/core/testing'; |
2 | import { FormsModule } from '@angular/forms'; | |
3 | import { RouterTestingModule } from '@angular/router/testing'; | |
4 | ||
11fdf7f2 | 5 | import { BsModalRef } from 'ngx-bootstrap/modal'; |
494da23a | 6 | import { ToastrModule } from 'ngx-toastr'; |
11fdf7f2 TL |
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], | |
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 | }); |