Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
AngularFireModule.initializeTestApp(COMMON_CONFIG),
AngularFireAuthModule,
AngularFireAuthGuardModule,
RouterModule.forRoot([
{ path: 'a', redirectTo: '/', canActivate: [AngularFireAuthGuard] }
])
],
providers: [
{ provide: APP_BASE_HREF, useValue: 'http://localhost:4200/' }
]
});
inject([FirebaseApp, Router], (app_: FirebaseApp, router_: Router) => {
app = app_;
router = router_;
})();
});