Cannot create Jest jsdom tests (?)

This commit is contained in:
Henrik Giesel 2021-06-18 20:41:54 +02:00
parent 039be57499
commit 297150a1b6

View File

@ -1,6 +1,12 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
test("it should work", () => {
expect("test").toBe("test");
import { filterHTML } from ".";
describe("filterHTML", () => {
test("zero input creates zero output", () => {
expect(filterHTML("", true, false)).toBe("");
expect(filterHTML("", true, false)).toBe("");
expect(filterHTML("", false, false)).toBe("");
});
});