Skip to content

Commit c424a06

Browse files
committed
fixing lint error
1 parent 98bfb21 commit c424a06

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/e2e/pageObjects/DicomViewer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class DicomViewer {
4242
await global.page.locator(util.format(this.elements.resourceNameSelector, filename)).click()
4343
}
4444

45-
async getOverlayPatientName(metadataLocation): Promise<void> {
45+
async getOverlayPatientName(): Promise<void> {
4646
return await global.page
4747
.locator(this.elements.vipMetadataPatientNameSelector)
4848
.first()

tests/unit/App.spec.ts

+6
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ vi.mock('@cornerstonejs/core', () => {
2727
})
2828
}
2929
}
30+
// Disable eslint rule for this function
31+
/* eslint-disable @typescript-eslint/no-empty-function */
3032
enableElement() {}
33+
/* eslint-enable @typescript-eslint/no-empty-function */
3134
},
3235
Types: vi.fn(),
3336
Enums: {
@@ -66,7 +69,10 @@ vi.mock('@cornerstonejs/dicom-image-loader', () => ({
6669
configure: vi.fn(),
6770
loadImage: vi.fn(),
6871
webWorkerManager: {
72+
// Disable eslint rule for this arrow function
73+
/* eslint-disable @typescript-eslint/no-empty-function */
6974
initialize: vi.fn().mockImplementation(() => {})
75+
/* eslint-enable @typescript-eslint/no-empty-function */
7076
}
7177
}))
7278

0 commit comments

Comments
 (0)