Skip to content

Commit

Permalink
update tests and remove globals rom runner tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyyy committed May 15, 2019
1 parent 7b7dd8b commit 697809e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
10 changes: 9 additions & 1 deletion test/core/reporters/raw-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ describe('reporters - raw-env', function() {
var mockResults;
var orig;
var rawResults;
var env = helpers.getEnvironmentData();
var env;

before(function() {
/**
* Ensure `axe._audit` exists, as it is called by `getEnvironmentData`
*/
axe._audit = {
brand: 'axe-test'
};
env = helpers.getEnvironmentData();

mockResults = [
{
id: 'gimmeLabel',
Expand Down
1 change: 0 additions & 1 deletion test/integration/rules/runner.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ui: 'bdd'
});
var assert = chai.assert;
var global = {};
</script>
<% files.forEach(function (file) { %>
<script src="../../<%=file%>"></script>
Expand Down
1 change: 0 additions & 1 deletion test/runner.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
ui: 'bdd'
});
var assert = chai.assert;
var global = {};
</script>
<% files.forEach(function (file) { %>
<script src="/<%=file%>"></script>
Expand Down

0 comments on commit 697809e

Please sign in to comment.