import { removeHtml } from "./removeHtml";
describe("removeHtml", () => {
it("should remove HTML tags from a string", () => {
const input = "
Hello World
";
const output = "Hello World";
expect(removeHtml(input)).toBe(output);
});
it("should return an empty string if input is an empty string", () => {
const input = "";
const output = "";
expect(removeHtml(input)).toBe(output);
});
it("should handle strings without HTML tags", () => {
const input = "Hello World";
const output = "Hello World";
expect(removeHtml(input)).toBe(output);
});
it("should handle nested HTML tags", () => {
const input = "";
const output = "Hello World";
expect(removeHtml(input)).toBe(output);
});
it("should handle self-closing tags", () => {
const input = "Hello
World
";
const output = "Hello World";
expect(removeHtml(input)).toBe(output);
});
});