Skip to content
Myr

remove duplicate location test for data uri

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Wes Todd · committed by Wes Todd · parent b28db2c · Browse files · 1 file+0 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−12 removed

  • tests:+0 added−12 removed

1 file+0 added−12 removed

modified:test/res.location.js-12 removed
114 unmodified lines
115 .expect('Location', 'data:text/javascript,export%20default%20()%20=%3E%20%7B%20%7D')116 .expect(200, done)117 })118119 it('should encode data uri', function (done) {120 var app = express()121 app.use(function (req, res) {122 res.location('data:text/javascript,export default () => { }').end();123 });124125 request(app)126 .get('/')127 .expect('Location', 'data:text/javascript,export%20default%20()%20=%3E%20%7B%20%7D')128 .expect(200, done)129 })130119 it('should consistently handle non-string input: boolean', function (done) {120 var app = express()121 app.use(function (req, res) {122 res.location(true).end();
251 unmodified lines