diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-12 23:09:25 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-28 13:42:25 +0100 |
commit | 675847a99f1640c87df0a6187eeb34b90d903666 (patch) | |
tree | 78483c739c2b164cd6b098d952658d636e3be745 /spec/setupBrowser.js | |
parent | fa0461eeddf65a249e1a674305684ae756a69965 (diff) | |
download | svg.js-675847a99f1640c87df0a6187eeb34b90d903666.tar.gz svg.js-675847a99f1640c87df0a6187eeb34b90d903666.zip |
plumber differences between node and browser so that tests run on both
Diffstat (limited to 'spec/setupBrowser.js')
-rw-r--r-- | spec/setupBrowser.js | 12 |
1 files changed, 12 insertions, 0 deletions
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 +}) |