Skip to content

Commit

Permalink
build: fix build due to inconsistent supertest behavior in older vers…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
wesleytodd committed Mar 20, 2024
1 parent 084e365 commit 11f2b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/res.location.js
Expand Up @@ -58,7 +58,7 @@ describe('res', function(){
});

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

// This ensures that our protocol check is case insensitive
request(app)
.get('/?q=HTTP://google.com\\@apple.com')
.get('/?q=HTTP://google.com' + encodeURIComponent('\\@apple.com'))
.expect(200)
.expect('Location', 'HTTP://google.com\\@apple.com')
.end(done)
Expand Down

0 comments on commit 11f2b1d

Please sign in to comment.