Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Fix false positive with global detection in mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
vmeurisse committed May 12, 2013
1 parent 9a9a8dd commit 4828391
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ define(['module', '../node_modules/mocha/mocha'], function(module) {
}
};

window.smpl_coverage_results = ''; //Prevent mocha to detect the iframe as new global
var postCoverage = function() {
var COVERAGE_KEY = '__coverage__';
if (window[COVERAGE_KEY]) {
Expand Down

0 comments on commit 4828391

Please sign in to comment.