Skip to content

Commit c86874a

Browse files
committed
test: fix broken tests due to changes at httpbingo.org
1 parent 86fc389 commit c86874a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/e2e-specs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,18 +321,18 @@ const tests = [
321321
},
322322
{
323323
description: 'should resolve correct URL after redirect (GET) #33',
324-
expected: 'resolved: {"status": 200, url: "http://httpbin.org/anything", ...',
325-
func: function (resolve, reject) { cordova.plugin.http.get('http://httpbingo.org/redirect-to?url=http://httpbin.org/anything', {}, {}, resolve, reject); },
324+
expected: 'resolved: {"status": 200, url: "http://httpbingo.org/anything", ...',
325+
func: function (resolve, reject) { cordova.plugin.http.get('http://httpbingo.org/redirect-to?url=http://httpbingo.org/anything', {}, {}, resolve, reject); },
326326
validationFunc: function (driver, result) {
327327
result.type.should.be.equal('resolved');
328-
result.data.url.should.be.equal('http://httpbin.org/anything');
328+
result.data.url.should.be.equal('http://httpbingo.org/anything');
329329
}
330330
},
331331
{
332332
description: 'should not follow 302 redirect when following redirects is disabled',
333333
expected: 'rejected: {"status": 302, ...',
334334
before: function (resolve, reject) { cordova.plugin.http.setFollowRedirect(false); resolve(); },
335-
func: function (resolve, reject) { cordova.plugin.http.get('http://httpbingo.org/redirect-to?url=http://httpbin.org/anything', {}, {}, resolve, reject); },
335+
func: function (resolve, reject) { cordova.plugin.http.get('http://httpbingo.org/redirect-to?url=http://httpbingo.org/anything', {}, {}, resolve, reject); },
336336
validationFunc: function (driver, result) {
337337
result.type.should.be.equal('rejected');
338338
result.data.status.should.be.equal(302);

0 commit comments

Comments
 (0)