diff --git a/tests/html.test.js b/tests/html.test.js
new file mode 100644
index 0000000000000..d83143adc924c
--- /dev/null
+++ b/tests/html.test.js
@@ -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(`hello world<,.#4^&^@%!))`)).toBe(
+ "<html>hello world<,.#4^&^@%!))",
+ );
+ });
+});
diff --git a/tests/render.test.js b/tests/render.test.js
index 935b7335a9288..6bb409b1c47e5 100644
--- a/tests/render.test.js
+++ b/tests/render.test.js
@@ -4,15 +4,8 @@ import { describe, expect, it } from "@jest/globals";
import { queryByTestId } from "@testing-library/dom";
import "@testing-library/jest-dom/jest-globals";
import { renderError } from "../src/common/render.js";
-import { encodeHTML } from "../src/common/html.js";
describe("Test render.js", () => {
- it("should test encodeHTML", () => {
- expect(encodeHTML(`hello world<,.#4^&^@%!))`)).toBe(
- "<html>hello world<,.#4^&^@%!))",
- );
- });
-
it("should test renderError", () => {
document.body.innerHTML = renderError({ message: "Something went wrong" });
expect(