mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 13:26:25 +02:00
test(server): fix ETAPI related test
This commit is contained in:
@@ -20,10 +20,13 @@ describe("etapi/post-revision", () => {
|
||||
});
|
||||
|
||||
it("posts note revision", async () => {
|
||||
await supertest(app)
|
||||
const response = await supertest(app)
|
||||
.post(`/etapi/notes/${createdNoteId}/revision`)
|
||||
.auth(USER, token, { "type": "basic"})
|
||||
.send("Changed content")
|
||||
.expect(204);
|
||||
.expect(201);
|
||||
|
||||
expect(response.body.revisionId).toBeTruthy();
|
||||
expect(response.body.noteId).toBe(createdNoteId);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user