refactor: move encode HTML function tests into separate module (#4593)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
co-authored by
Alexandr
parent
a72d88fd54
commit
f5de29fa67
@@ -0,0 +1,10 @@
|
||||
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(
|
||||
"<html>hello world<,.#4^&^@%!))",
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user