mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Cannot create Jest jsdom tests (?)
This commit is contained in:
parent
039be57499
commit
297150a1b6
1 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,12 @@
|
||||||
// Copyright: Ankitects Pty Ltd and contributors
|
// Copyright: Ankitects Pty Ltd and contributors
|
||||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
test("it should work", () => {
|
import { filterHTML } from ".";
|
||||||
expect("test").toBe("test");
|
|
||||||
|
describe("filterHTML", () => {
|
||||||
|
test("zero input creates zero output", () => {
|
||||||
|
expect(filterHTML("", true, false)).toBe("");
|
||||||
|
expect(filterHTML("", true, false)).toBe("");
|
||||||
|
expect(filterHTML("", false, false)).toBe("");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue