From 675847a99f1640c87df0a6187eeb34b90d903666 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Mon, 12 Nov 2018 23:09:25 +0100 Subject: plumber differences between node and browser so that tests run on both --- spec/setupBrowser.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/setupBrowser.js (limited to 'spec/setupBrowser.js') diff --git a/spec/setupBrowser.js b/spec/setupBrowser.js new file mode 100644 index 0000000..6ec7816 --- /dev/null +++ b/spec/setupBrowser.js @@ -0,0 +1,12 @@ +import { buildCanvas, buildFixtures, clear } from './helpers.js' + +beforeEach(() => { + //buildFixtures() + buildCanvas() + window.container = document.getElementById('canvas') +}) + +afterEach(() => { + clear() + window.container = null +}) -- cgit v1.2.3