Skip to content

Commit 11f2b1d

Browse files
committed
build: fix build due to inconsistent supertest behavior in older versions
1 parent 084e365 commit 11f2b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/res.location.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('res', function(){
5858
});
5959

6060
request(app)
61-
.get('/?q=http://google.com\\@apple.com')
61+
.get('/?q=http://google.com' + encodeURIComponent('\\@apple.com'))
6262
.expect(200)
6363
.expect('Location', 'http://google.com\\@apple.com')
6464
.end(function (err) {
@@ -68,7 +68,7 @@ describe('res', function(){
6868

6969
// This ensures that our protocol check is case insensitive
7070
request(app)
71-
.get('/?q=HTTP://google.com\\@apple.com')
71+
.get('/?q=HTTP://google.com' + encodeURIComponent('\\@apple.com'))
7272
.expect(200)
7373
.expect('Location', 'HTTP://google.com\\@apple.com')
7474
.end(done)

0 commit comments

Comments
 (0)