diff --git a/test/api.mocha.coffee b/test/api.mocha.coffee index 9524a61892..70453f0c6a 100644 --- a/test/api.mocha.coffee +++ b/test/api.mocha.coffee @@ -47,10 +47,10 @@ describe "API", -> randomID = shared.uuid() username = password = randomID if main request - .post baseURL + "/register" - .set "Accept", "application/json" - .set "X-API-User", null - .set "X-API-Key", null + .post(baseURL + "/register") + .set("Accept", "application/json") + .set("X-API-User", null) + .set("X-API-Key", null) .send username: randomID password: randomID @@ -67,9 +67,9 @@ describe "API", -> expect(err).to.not.be.ok() user = _user request - .set "Accept", "application/json" - .set "X-API-User", _id - .set "X-API-Key", apiToken + .set("Accept", "application/json") + .set("X-API-User", _id) + .set("X-API-Key", apiToken) cb null, res.body before (done) -> diff --git a/test/common/mocha.opts b/test/common/mocha.opts index 70308aadd7..84bfdce89a 100644 --- a/test/common/mocha.opts +++ b/test/common/mocha.opts @@ -4,5 +4,5 @@ --check-leaks --growl --debug ---compilers coffee:coffee-script/register +--compilers coffee:coffee-script --globals io diff --git a/test/mocha.opts b/test/mocha.opts index 70308aadd7..84bfdce89a 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -4,5 +4,5 @@ --check-leaks --growl --debug ---compilers coffee:coffee-script/register +--compilers coffee:coffee-script --globals io