mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 22:41:36 +08:00
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:
parent
e1795a0ad1
commit
4917296d96
@ -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", () => {
|
describe("#removeDiacritic", () => {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user