Skip to content

Commit

Permalink
remove duplicate location test for data uri
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Mar 26, 2024
1 parent b28db2c commit 94669f9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/res.location.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,6 @@ describe('res', function(){
.expect(200, done)
})

it('should encode data uri', function (done) {
var app = express()
app.use(function (req, res) {
res.location('data:text/javascript,export default () => { }').end();
});

request(app)
.get('/')
.expect('Location', 'data:text/javascript,export%20default%20()%20=%3E%20%7B%20%7D')
.expect(200, done)
})

it('should consistently handle non-string input: boolean', function (done) {
var app = express()
app.use(function (req, res) {
Expand Down

0 comments on commit 94669f9

Please sign in to comment.