Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Mendoza Fernadez authored and Leonardo Mendoza Fernadez committed Dec 15, 2023
1 parent e9eda68 commit ee5b693
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'
import { SettingsActionsComponent } from './settings-actions.component'
import { WINDOW_PROVIDERS } from 'src/app/cdk/window/window.service'
import { ActivatedRoute } from '@angular/router'
import { of } from 'rxjs'

describe('SettingsActionsComponent', () => {
let component: SettingsActionsComponent
Expand All @@ -11,7 +12,7 @@ describe('SettingsActionsComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [SettingsActionsComponent],
providers: [WINDOW_PROVIDERS, { provide: ActivatedRoute, useValue: {} }],
providers: [WINDOW_PROVIDERS, { provide: ActivatedRoute, useValue: {fragment: of({})} }],
}).compileComponents()
})

Expand Down

0 comments on commit ee5b693

Please sign in to comment.