diff --git a/gruntfile.js b/gruntfile.js index a57b683..316e21b 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -88,7 +88,7 @@ module.exports = function(grunt) { mocha: { // Run all tests (e.g., tests require()'ed in tests/index.js) and also tests/bugs/issue225.js // separately, since it can't be included in a browserify build. - command: './node_modules/.bin/mocha --reporter list tests/index.js tests/bugs/issue225.js' + command: './node_modules/.bin/mocha --reporter list tests/index.js && ./node_modules/.bin/mocha --reporter list tests/bugs/issue225.js' } }, diff --git a/tests/bugs/issue225.js b/tests/bugs/issue225.js index 15a0803..f595c97 100644 --- a/tests/bugs/issue225.js +++ b/tests/bugs/issue225.js @@ -7,6 +7,7 @@ var requirejs = require('requirejs'); var expect = require('chai').expect; +// browser-request assumes access to XHR GLOBAL.XMLHttpRequest = {}; describe('require.js should be able to use built Filer, issue 225', function() {