diff options
Diffstat (limited to 'spec/setupSVGDom.js')
-rw-r--r-- | spec/setupSVGDom.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/setupSVGDom.js b/spec/setupSVGDom.js index 3da401d..1d9ff95 100644 --- a/spec/setupSVGDom.js +++ b/spec/setupSVGDom.js @@ -1,13 +1,16 @@ -import svgdom from 'svgdom' +import { createSVGWindow } from 'svgdom' -import { buildCanvas, buildFixtures, clear } from './helpers.js' +/* globals beforeEach, afterEach, jasmine */ +import { buildCanvas, clear } from './helpers.js' import { registerWindow } from '../src/main.js' +jasmine.DEFAULT_TIMEOUT_INTERVAL = 200 + function setup () { - let win = /*new*/ svgdom + const win = createSVGWindow() registerWindow(win, win.document) buildCanvas() - buildFixtures() + // buildFixtures() global.container = win.document.getElementById('canvas') } |