Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
IPdotSetAF committed Oct 27, 2024
1 parent b315b6c commit 5458f38
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/app/not-found/not-found.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { NotFoundComponent } from './not-found.component';
import { ActivatedRoute } from '@angular/router';

describe('NotFoundComponent', () => {
let component: NotFoundComponent;
let fixture: ComponentFixture<NotFoundComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [NotFoundComponent]
imports: [NotFoundComponent],
providers: [
{
provide: ActivatedRoute,
useValue: {
snapshot: {
url: ["404"]
}
}
},
]
})
.compileComponents();

Expand Down

0 comments on commit 5458f38

Please sign in to comment.