mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
test(server/utils): add tests for escapeHtml & unescapeHtml
This commit is contained in:
@@ -108,11 +108,17 @@ describe("#sanitizeSqlIdentifier", () => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// TriliumNextTODO: should use mocks and assert that functions get called
|
describe("#escapeHtml", () => {
|
||||||
describe.todo("#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("#unescapeHtml", () => {
|
||||||
describe.todo("#unescapeHtml", () => {});
|
it("should re-export 'unescape' npm module as unescapeHtml", () => {
|
||||||
|
expect(utils.unescapeHtml).toBeTypeOf("function");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe.todo("#toObject", () => {});
|
describe.todo("#toObject", () => {});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user