From 6494d8ef4e1b4911115173dcc2334ebf55ef2c1c Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Fri, 20 Mar 2026 16:28:01 -0700 Subject: [PATCH] Fix lint errors --- packages/loot-core/src/server/api.test.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/loot-core/src/server/api.test.ts b/packages/loot-core/src/server/api.test.ts index 06b5ee7c2c..12ffbb2145 100644 --- a/packages/loot-core/src/server/api.test.ts +++ b/packages/loot-core/src/server/api.test.ts @@ -17,16 +17,20 @@ describe('API app', () => { ); await apiApp['api/bank-sync']({ accountId: 'account1' }); - expect(mainApp.runHandler).toHaveBeenCalledWith('accounts-bank-sync', { - ids: ['account1'], - }); + expect(mainApp.runHandler.bind(mainApp)).toHaveBeenCalledWith( + 'accounts-bank-sync', + { + ids: ['account1'], + }, + ); }); it('should throw an error when bank sync fails', async () => { vi.spyOn(mainApp, 'runHandler').mockImplementation( async (name: string) => { - if (name === 'accounts-bank-sync') + if (name === 'accounts-bank-sync') { return { errors: [{ message: 'connection-failed' }] }; + } throw new Error(`Unexpected handler: ${name}`); }, );