window.chai = require("chai");
window.expect = chai.expect;
window.sinon = require("sinon");
var sinonChai = require("sinon-chai");
chai.use(sinonChai);

require("spec/test-entry");

after(function() {
  require("coverjs-loader").reportHtml();

  var
    coverJsEl = document.querySelector(".coverjs-report"),
    mochaEl = document.querySelector("#mocha");
  if (coverJsEl) { mochaEl.appendChild(coverJsEl); }
});

@@ -1,12 +1,40 @@
+var sinonChai, fixturesEl;%0A%0A
 window.chai 
@@ -68,16 +68,23 @@
 xpect = 
+window.
 chai.exp
@@ -121,20 +121,16 @@
 inon%22);%0A
-var 
 sinonCha
@@ -156,16 +156,23 @@
 chai%22);%0A
+window.
 chai.use
@@ -185,16 +185,104 @@
 Chai);%0A%0A
+fixturesEl = document.createElement(%22div%22);%0AfixturesEl.setAttribute(%22id%22, %22fixtures%22);%0A%0A
 require(
@@ -321,16 +321,42 @@
 ion() %7B%0A
+  var coverJsEl, mochaEl;%0A
   requir
@@ -393,17 +393,8 @@
 ();%0A
-%0A  var%0A  
   co
@@ -448,12 +448,10 @@
 rt%22)
-,%0A  
+;%0A
   mo

add fixtures div to document