From ed11dde49e8dca84fed4e0b4b7b06efde4d40caf Mon Sep 17 00:00:00 2001 From: Wes Todd <wes@wesleytodd.com> Date: Mon, 25 Mar 2024 10:03:18 -0500 Subject: [PATCH] remove duplicate location test for data uri --- test/res.location.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/res.location.js b/test/res.location.js index c80b38de6b..141ee90131 100644 --- a/test/res.location.js +++ b/test/res.location.js @@ -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) {