Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 5b3461a

Browse files
committed
Merge pull request #16 from strongloop/feature/upgrade-mocha-to-1.9
helpers: fix usage of mocha contexts
2 parents 12d3bad + 0aecd89 commit 5b3461a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ _describe.whenCalledRemotely = function(verb, url, cb) {
160160
if(methodForVerb === 'delete') methodForVerb = 'del';
161161

162162
this.http = this.request[methodForVerb](this.url);
163-
this.url = undefined;
163+
delete this.url;
164164
this.http.set('Accept', 'application/json');
165165
if(this.loggedInAccessToken) {
166166
this.http.set('authorization', this.loggedInAccessToken.id);
@@ -170,7 +170,7 @@ _describe.whenCalledRemotely = function(verb, url, cb) {
170170
this.http.end(function(err) {
171171
test.req = test.http.req;
172172
test.res = test.http.res;
173-
test.url = undefined;
173+
delete test.url;
174174
cb();
175175
});
176176
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Ritchie Martori",
1111
"dependencies": {
1212
"supertest": "~0.9.0",
13-
"mocha": "~1.17.1",
13+
"mocha": "~1.20.1",
1414
"async": "~0.2.10"
1515
},
1616
"peerDependencies": {

0 commit comments

Comments
 (0)