]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix missing import
authorTatjana Dehler <tdehler@suse.com>
Wed, 15 Aug 2018 13:56:09 +0000 (15:56 +0200)
committerTatjana Dehler <tdehler@suse.com>
Tue, 9 Oct 2018 12:49:38 +0000 (14:49 +0200)
Added the missing import otherwise the 'should create' test will fail
because the received component is undefined.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.spec.ts

index c2602be6dc1ad5471397b29af84ef757e9e91c4b..9bc397802ade9fa59c1c6ef3dcbe6056738fdb11 100644 (file)
@@ -1,6 +1,7 @@
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { FormsModule } from '@angular/forms';
+import { RouterTestingModule } from '@angular/router/testing';
 
 import { TabsModule } from 'ngx-bootstrap/tabs/tabs.module';
 
@@ -16,7 +17,13 @@ describe('ConfigurationComponent', () => {
   configureTestBed({
     declarations: [ConfigurationComponent],
     providers: [ConfigurationService],
-    imports: [SharedModule, FormsModule, TabsModule.forRoot(), HttpClientTestingModule]
+    imports: [
+      SharedModule,
+      FormsModule,
+      TabsModule.forRoot(),
+      HttpClientTestingModule,
+      RouterTestingModule
+    ]
   });
 
   beforeEach(() => {