Enable Test to run in Debug mode
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / app.component.spec.ts
index 7222b1e..3e707be 100644 (file)
@@ -1,23 +1,17 @@
 import { TestBed, async } from '@angular/core/testing';
-import { APP_BASE_HREF } from '@angular/common';
-import { RouterModule, Routes } from '@angular/router';
+import { RouterTestingModule } from '@angular/router/testing';
 import { AppComponent } from './app.component';
 
 describe('AppComponent', () => {
-  const routes: Routes = [
-    { path: '', redirectTo: '/policy', pathMatch: 'full'}
-  ];
   beforeEach(async(() => {
     TestBed.configureTestingModule({
       declarations: [
         AppComponent
       ],
       imports: [
-        RouterModule.forRoot(routes)
+        RouterTestingModule
       ],
-      providers: [
-        { provide: APP_BASE_HREF, useValue: '/' }
-      ]
+      providers: []
     }).compileComponents();
   }));