Skip to content

Build your personal knowledge base with Trilium Notes

test(etapi): variable shadowing causing spurious error

Elian Dorane7fd9371b6b1
diff --git a/apps/server/spec/etapi/patch-note.spec.ts b/apps/server/spec/etapi/patch-note.spec.ts
index 178808762c..3d6a9cd598 100644
--- a/apps/server/spec/etapi/patch-note.spec.ts
+++ b/apps/server/spec/etapi/patch-note.spec.ts
@@ -29,7 +29,7 @@ describe("etapi/patch-note", () => {
})
.expect(201);
- const createdNoteId = response.body.note.noteId as string;
+ createdNoteId = response.body.note.noteId as string;
expect(createdNoteId).toBeTruthy();
});