Created
August 1, 2017 02:44
-
-
Save jwashke/3653042a7a3f6b227dcc08cc7c17135c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Each test where routerLink is present | |
import { RouterModule } from '@angular/router'; | |
import { APP_BASE_HREF } from '@angular/common'; | |
TestBed.configureTestingModule({ | |
declarations: [ NavComponent ], | |
providers: [ | |
{provide: APP_BASE_HREF, useValue: '/'}, | |
{ provide: AuthService, useValue: mockAuthService } | |
], | |
imports:[RouterModule.forRoot([])] | |
}) | |
.compileComponents(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment