Skip to content

Commit

Permalink
fix: adapt userService spy, userService mock
Browse files Browse the repository at this point in the history
  • Loading branch information
kim.tran committed Nov 12, 2024
1 parent 6fa164b commit e5e82d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('PageHeaderComponent', () => {
let component: PageHeaderComponent
let fixture: ComponentFixture<PageHeaderComponent>
let pageHeaderHarness: PageHeaderHarness
let userServiceSpy: jest.SpyInstance<boolean, [permissionKey: string], any>
let userServiceSpy: jest.SpyInstance<boolean, [permissionKey: string | string[]], any>

beforeEach(async () => {
await TestBed.configureTestingModule({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BehaviorSubject } from 'rxjs'
export class MockUserService {
lang$ = new BehaviorSubject<string>('en')
/* eslint-disable @typescript-eslint/no-unused-vars */
hasPermission(permissionKey: string): boolean {
hasPermission(permissionKey: string | string[]): boolean {
return true
}
}

0 comments on commit e5e82d4

Please sign in to comment.