From 259ce440c5a7af4ef82568b7b0ff4b5306a76938 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 28 Feb 2025 22:02:41 +0200 Subject: [PATCH] fix(build): type error due to test --- src/public/app/test/setup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/app/test/setup.ts b/src/public/app/test/setup.ts index 516553422..7f3f5aa1b 100644 --- a/src/public/app/test/setup.ts +++ b/src/public/app/test/setup.ts @@ -48,9 +48,9 @@ function mockServer() { } }, - async post(url: string, data: {}) { + async post(url: string, data: object) { if (url === "tree/load") { - throw new Error(`A module tried to load from the server the following notes: ${data.noteIds.join(",")}\nThis is not supported, use Froca mocking instead and ensure the note exist in the mock.`) + throw new Error(`A module tried to load from the server the following notes: ${((data as any).noteIds || []).join(",")}\nThis is not supported, use Froca mocking instead and ensure the note exist in the mock.`) } } }