Fix #896: improve placeholder dynamism, add more tests for UI code

This commit is contained in:
Pieter Vander Vennet 2022-06-30 03:07:54 +02:00
parent 94475e4d4d
commit 972d702315
7 changed files with 148 additions and 66 deletions

View file

@ -1,11 +1,13 @@
import ScriptUtils from "../scripts/ScriptUtils";
import {Utils} from "../Utils";
import * as fakedom from "fake-dom"
import Locale from "../UI/i18n/Locale";
export const mochaHooks = {
beforeEach(done) {
ScriptUtils.fixUtils();
Locale.language.setData("en")
if (fakedom === undefined || window === undefined) {
throw "FakeDom not initialized"