Skip to content

Commit

Permalink
Cobbler-Frontend: Switch to providerRouter()
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Aug 19, 2024
1 parent 6428775 commit 3311f3d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { provideRouter } from "@angular/router";

import { AuthGuardService } from './auth-guard.service';
import { UserService } from './user.service';
Expand All @@ -9,8 +9,10 @@ describe('AuthGuardService', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [RouterTestingModule],
providers: [UserService],
providers: [
provideRouter([]),
UserService,
],
});
service = TestBed.inject(AuthGuardService);
});
Expand Down

0 comments on commit 3311f3d

Please sign in to comment.