Added tests for toggles

This commit is contained in:
Daniël van Noord
2021-04-13 11:38:23 +02:00
parent 652d00ee72
commit d23719c2a8
4 changed files with 197 additions and 0 deletions

10
test/GlobalsForTesting.js Normal file
View File

@@ -0,0 +1,10 @@
export function l(id) {
if (global.domids[id] === undefined) global.domids[id] = { style: {} };
return global.domids[id];
}
export const Game = {
DrawBackground() {},
Background: { canvas: { parentNode: {} } },
LeftBackground: { canvas: { parentNode: {} } },
};