diff --git a/tests/e2e/pageObjects/DicomViewer.ts b/tests/e2e/pageObjects/DicomViewer.ts index c397441f..103b1977 100644 --- a/tests/e2e/pageObjects/DicomViewer.ts +++ b/tests/e2e/pageObjects/DicomViewer.ts @@ -42,7 +42,7 @@ export class DicomViewer { await global.page.locator(util.format(this.elements.resourceNameSelector, filename)).click() } - async getOverlayPatientName(metadataLocation): Promise { + async getOverlayPatientName(): Promise { return await global.page .locator(this.elements.vipMetadataPatientNameSelector) .first() diff --git a/tests/unit/App.spec.ts b/tests/unit/App.spec.ts index a0b344e9..6b6a457b 100644 --- a/tests/unit/App.spec.ts +++ b/tests/unit/App.spec.ts @@ -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: { @@ -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 */ } }))