fix(build): type error due to test

This commit is contained in:
Elian Doran 2025-02-28 22:02:41 +02:00
parent 2a75819734
commit 259ce440c5
No known key found for this signature in database

View File

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