From 72f0de6b78938f5550327d08e69579038f38f434 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Fri, 31 Jan 2025 23:23:07 +0100 Subject: [PATCH] test(server/utils): add todo remarks --- src/services/utils.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/services/utils.spec.ts b/src/services/utils.spec.ts index 272a03b8c..9669acfd0 100644 --- a/src/services/utils.spec.ts +++ b/src/services/utils.spec.ts @@ -24,6 +24,7 @@ describe("#randomString", () => { }); +// TriliumNextTODO: should use mocks and assert that functions get called describe("#randomSecureToken", () => { // base64 -> 4 * (bytes/3) length -> if padding and rounding up is ignored for simplicity // https://stackoverflow.com/a/13378842 @@ -44,16 +45,22 @@ describe("#randomSecureToken", () => { }); }); +// TriliumNextTODO: should use mocks and assert that functions get called describe.todo("#md5", () => {}); +// TriliumNextTODO: should use mocks and assert that functions get called describe.todo("#hashedBlobId", () => {}); +// TriliumNextTODO: should use mocks and assert that functions get called describe.todo("#toBase64", () => {}); +// TriliumNextTODO: should use mocks and assert that functions get called describe.todo("#fromBase64", () => {}); +// TriliumNextTODO: should use mocks and assert that functions get called describe.todo("#hmac", () => {}); +// TriliumNextTODO: should use mocks and assert that functions get called describe.todo("#hash", () => {}); describe("#isEmptyOrWhitespace", () => { @@ -101,8 +108,10 @@ describe("#sanitizeSqlIdentifier", () => { }); +// TriliumNextTODO: should use mocks and assert that functions get called describe.todo("#escapeHtml", () => {}); +// TriliumNextTODO: should use mocks and assert that functions get called describe.todo("#unescapeHtml", () => {}); describe.todo("#toObject", () => {});