test(server/utils): add basic test for deferred

this needs to be expanded, but I don't fully understand
what the exact purpose is of this deferred fn
This commit is contained in:
Panagiotis Papadopoulos 2025-02-01 14:33:47 +01:00
parent e1795a0ad1
commit 4917296d96

View File

@ -381,7 +381,13 @@ describe("#timeLimit", () => {
});
describe.todo("#deferred", () => {});
describe("#deferred", () => {
it("should return a promise", () => {
const result = utils.deferred();
expect(result).toBeInstanceOf(Promise)
})
// TriliumNextTODO: Add further tests!
});
describe("#removeDiacritic", () => {