Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make tests zuul-compatible
  • Loading branch information
rstacruz committed Jul 4, 2015
1 parent 84849c4 commit a2cb5f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .zuul.yml
@@ -0,0 +1,8 @@
ui: mocha-bdd
browsers:
- name: ie
version: 8
# - name: firefox
# version: latest
# - name: chrome
# version: latest
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -11,7 +11,7 @@
"jquery": "^2.1.4",
"jsdom": "^5.4.3",
"mocha": "^2.2.5",
"mocha-jsdom": "^0.5.0",
"mocha-jsdom": "^1.0.0",
"mocha-standard": "0.0.5",
"standard": "^4.3.2"
},
Expand Down
4 changes: 1 addition & 3 deletions test/setup.js
Expand Up @@ -3,13 +3,11 @@
if (typeof process === 'object') {
module.exports = function () {
var jsdom = require('mocha-jsdom')
var rerequire = jsdom.rerequire

jsdom()

before(function () {
global.expect = require('expect')
global.onmount = rerequire('../index')
global.onmount = require('../index')
})
}
} else {
Expand Down

0 comments on commit a2cb5f9

Please sign in to comment.