Преглед изворни кода

Append fixture el to actual DOM

Alasdair Smith пре 8 година
родитељ
комит
9ed4f121b1
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      services/web/test/unit_frontend/es/support/fixture.js

+ 1 - 0
services/web/test/unit_frontend/es/support/fixture.js

@@ -1,6 +1,7 @@
 class Fixture {
 class Fixture {
   constructor () {
   constructor () {
     this.el = document.createElement('div')
     this.el = document.createElement('div')
+    document.body.appendChild(this.el)
   }
   }
 
 
   load (html) {
   load (html) {