This PR mainly refactors the code by extracting a "core" package which is then used by the "backend" and "frontend" apps. Apart from this the PR also contains several smaller changes like fixing dependabot, upgrading dependencies, aligned "package.json" files, added tests, ... addresses step 1 of #32 closes #136 --------- Co-authored-by: Marco Pasqualetti <marco.pasqualetti@live.com>
12 lines
309 B
JavaScript
12 lines
309 B
JavaScript
import { describe, expect, it } from "vitest";
|
|
|
|
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^&^@%!))",
|
|
);
|
|
});
|
|
});
|