summaryrefslogtreecommitdiffstats
path: root/spec/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers.js')
-rw-r--r--spec/helpers.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/helpers.js b/spec/helpers.js
index 23f92bb..a584b6a 100644
--- a/spec/helpers.js
+++ b/spec/helpers.js
@@ -152,8 +152,9 @@ export function buildCanvas () {
export function clear () {
let doc = getWindow().document
let canvas = doc.getElementById('canvas')
- //let fixtures = doc.getElementById('fixtures')
+ let fixtures = doc.getElementById('fixtures')
- //fixtures.parentNode.removeChild(fixtures)
+ // remove if present
+ fixtures && fixtures.parentNode.removeChild(fixtures)
canvas.parentNode.removeChild(canvas)
}