fix(build): type error due to test

pull/1304/head
Elian Doran 2025-02-28 22:02:41 +07:00
parent 2a75819734
commit 259ce440c5
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

@ -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.`)
}
}
}