From bb4806087a56fb459f0ae29d797f70cf3e7b940f Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Tue, 17 Oct 2023 22:51:25 -0500 Subject: [PATCH] Fix strange syntax that didn't cause linting errors --- src/containerization/test/UncommittedFile.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/containerization/test/UncommittedFile.spec.ts b/src/containerization/test/UncommittedFile.spec.ts index 599cd4f2..d7798087 100644 --- a/src/containerization/test/UncommittedFile.spec.ts +++ b/src/containerization/test/UncommittedFile.spec.ts @@ -18,8 +18,8 @@ describe('uncommittedWarning', () => { test('warning is suppressed', async () => { const { editorGateway, uncommittedFile } = getContainer(); const showWarningMessageSpy = jest.fn(); - (editorGateway.editor.window.showWarningMessage = showWarningMessageSpy), - uncommittedFile.warn(getMockContext(true), '/foo/baz', 'build', []); + editorGateway.editor.window.showWarningMessage = showWarningMessageSpy; + uncommittedFile.warn(getMockContext(true), '/foo/baz', 'build', []); expect(showWarningMessageSpy).not.toHaveBeenCalled(); }); @@ -38,7 +38,7 @@ describe('uncommittedWarning', () => { childProcessGateway.cp.spawn = jest.fn().mockImplementationOnce(() => { return { stdout: { - on: (event: unknown, callback: CallableFunction) => callback(data), + on: (_event: unknown, callback: CallableFunction) => callback(data), }, }; }); @@ -61,7 +61,7 @@ describe('uncommittedWarning', () => { childProcessGateway.cp.spawn = jest.fn().mockImplementationOnce(() => { return { stdout: { - on: (event: unknown, callback: CallableFunction) => callback(data), + on: (_event: unknown, callback: CallableFunction) => callback(data), }, }; }); @@ -84,7 +84,7 @@ describe('uncommittedWarning', () => { childProcessGateway.cp.spawn = jest.fn().mockImplementationOnce(() => { return { stdout: { - on: (event: unknown, callback: CallableFunction) => callback(data), + on: (_event: unknown, callback: CallableFunction) => callback(data), }, }; }); @@ -107,7 +107,7 @@ describe('uncommittedWarning', () => { childProcessGateway.cp.spawn = jest.fn().mockImplementationOnce(() => { return { stdout: { - on: (event: unknown, callback: CallableFunction) => callback(data), + on: (_event: unknown, callback: CallableFunction) => callback(data), }, }; });