test(server/utils): add tests for escapeHtml & unescapeHtml

This commit is contained in:
Panagiotis Papadopoulos
2025-01-31 23:47:55 +01:00
parent d71e127828
commit f0ba056bb7

View File

@@ -108,11 +108,17 @@ describe("#sanitizeSqlIdentifier", () => {
});
// TriliumNextTODO: should use mocks and assert that functions get called
describe.todo("#escapeHtml", () => {});
describe("#escapeHtml", () => {
it("should re-export 'escape-html' npm module as escapeHtml", () => {
expect(utils.escapeHtml).toBeTypeOf("function");
});
});
// TriliumNextTODO: should use mocks and assert that functions get called
describe.todo("#unescapeHtml", () => {});
describe("#unescapeHtml", () => {
it("should re-export 'unescape' npm module as unescapeHtml", () => {
expect(utils.unescapeHtml).toBeTypeOf("function");
});
});
describe.todo("#toObject", () => {});