forked from MapComplete/MapComplete
Fix #896: improve placeholder dynamism, add more tests for UI code
This commit is contained in:
parent
94475e4d4d
commit
972d702315
7 changed files with 148 additions and 66 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue