Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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