mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-25 00:31:43 +08:00
fix(build): type error due to test
This commit is contained in:
parent
2a75819734
commit
259ce440c5
@ -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.`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user