X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fapp.component.spec.ts;h=3e707be26b3aaa6b25f5530c3991085b2c8365f4;hb=095fb8c5c7ef690bc6f4317338f0716a8b7c6cb9;hp=7222b1e7e5070c1fbd699409edf65f923bae7453;hpb=7443264a661235f08797ebf0dbb6a512f6485756;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/app.component.spec.ts b/webapp-frontend/src/app/app.component.spec.ts index 7222b1e..3e707be 100644 --- a/webapp-frontend/src/app/app.component.spec.ts +++ b/webapp-frontend/src/app/app.component.spec.ts @@ -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(); }));