Skip to content

Commit

Permalink
fixing lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Salipa-Gurung committed Jul 2, 2024
1 parent e107890 commit bf0737f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/pageObjects/DicomViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class DicomViewer {
await global.page.locator(util.format(this.elements.resourceNameSelector, filename)).click()
}

async getOverlayPatientName(metadataLocation): Promise<void> {
async getOverlayPatientName(): Promise<void> {
return await global.page
.locator(this.elements.vipMetadataPatientNameSelector)
.first()
Expand Down
6 changes: 6 additions & 0 deletions tests/unit/App.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ vi.mock('@cornerstonejs/core', () => {
})
}
}
// Disable eslint rule for this function
/* eslint-disable @typescript-eslint/no-empty-function */
enableElement() {}
/* eslint-enable @typescript-eslint/no-empty-function */
},
Types: vi.fn(),
Enums: {
Expand Down Expand Up @@ -66,7 +69,10 @@ vi.mock('@cornerstonejs/dicom-image-loader', () => ({
configure: vi.fn(),
loadImage: vi.fn(),
webWorkerManager: {
// Disable eslint rule for this arrow function
/* eslint-disable @typescript-eslint/no-empty-function */
initialize: vi.fn().mockImplementation(() => {})
/* eslint-enable @typescript-eslint/no-empty-function */
}
}))

Expand Down

0 comments on commit bf0737f

Please sign in to comment.