Files
github-stats-extended/apps/backend/tests/html.test.js
T
2026-02-09 09:15:46 +01:00

12 lines
316 B
JavaScript

import { describe, expect, it } from "@jest/globals";
import { encodeHTML } from "../src/common/html.js";
describe("Test html.js", () => {
it("should test encodeHTML", () => {
expect(encodeHTML(`<html>hello world<,.#4^&^@%!))`)).toBe(
"&#60;html&#62;hello world&#60;,.#4^&#38;^@%!))",
);
});
});