Skip to content

Commit

Permalink
Merge pull request #3196 from strongloop/upgrade-supertest
Browse files Browse the repository at this point in the history
Upgrade supertest to 3.x
  • Loading branch information
bajtos authored Feb 9, 2017
2 parents d809578 + a80f844 commit 88c38e7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@
"sinon-chai": "^2.8.0",
"strong-error-handler": "^1.0.1",
"strong-task-emitter": "^0.0.6",
"supertest": "^2.0.0",
"supertest-as-promised": "^4.0.2"
"supertest": "^3.0.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion test/context-options.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

var expect = require('chai').expect;
var loopback = require('..');
var supertest = require('supertest-as-promised')(require('bluebird'));
var supertest = require('supertest');

describe('OptionsFromRemotingContext', function() {
var app, request, accessToken, userId, Product, actualOptions;
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/loopback-testing-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ _describe.whenCalledRemotely = function(verb, url, data, cb) {
var test = this;
this.http.end(function(err) {
test.req = test.http.req;
test.res = test.http.res;
test.res = test.http.response;
delete test.url;

cb();
Expand Down
2 changes: 1 addition & 1 deletion test/relations.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe('relations - integration', function() {
if (err) return done(err);

this.req = this.http.req;
this.res = this.http.res;
this.res = this.http.response;

done();
}.bind(this));
Expand Down

0 comments on commit 88c38e7

Please sign in to comment.