import { describe, it, expect } from "vitest";
import * as entities from "./index.js";
describe("escape HTML", () => {
it("should escape HTML attribute values", () =>
expect(entities.escapeAttribute(' & value \u00A0!')).toBe(
" & value !",
));
it("should escape HTML text", () =>
expect(entities.escapeText(' & value \u00A0!')).toBe(
'<a " text > & value !',
));
});