From c39d2edce75ddf05e354c91b7f8bca1afca6e876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Thu, 19 Oct 2023 02:22:29 +0100 Subject: [PATCH] test: fix type for test --- src/util/__tests__/DecryptionQueue.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/__tests__/DecryptionQueue.test.ts b/src/util/__tests__/DecryptionQueue.test.ts index 4f2bf35..eb102fa 100644 --- a/src/util/__tests__/DecryptionQueue.test.ts +++ b/src/util/__tests__/DecryptionQueue.test.ts @@ -18,15 +18,16 @@ test('should be able to forward request to worker client bus', async () => { vi.spyOn(bus, 'request').mockImplementation( async (actionName: DECRYPTION_WORKER_ACTION_NAME, payload: unknown): Promise => { return { actionName, payload }; - } + }, ); const queue = new DecryptionQueue(bus, 1); - await expect(queue.add({ id: 'file://1', blobURI: 'blob://mock-file' })).resolves.toEqual({ + await expect(queue.add({ id: 'file://1', blobURI: 'blob://mock-file', options: {} })).resolves.toEqual({ actionName: DECRYPTION_WORKER_ACTION_NAME.DECRYPT, payload: { blobURI: 'blob://mock-file', id: 'file://1', + options: {}, }, }); });