blob: 3da401d39717e92d43cb22ba4775185b824a2ca9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import svgdom from 'svgdom'
import { buildCanvas, buildFixtures, clear } from './helpers.js'
import { registerWindow } from '../src/main.js'
function setup () {
let win = /*new*/ svgdom
registerWindow(win, win.document)
buildCanvas()
buildFixtures()
global.container = win.document.getElementById('canvas')
}
function teardown () {
clear()
global.container = null
registerWindow()
}
beforeEach(setup)
afterEach(teardown)
|