mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 00:19:48 +01:00
remove duplicate location test for data uri
This commit is contained in:
parent
b28db2c12c
commit
94669f9289
|
|
@ -116,18 +116,6 @@ describe('res', function(){
|
||||||
.expect(200, done)
|
.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) {
|
it('should consistently handle non-string input: boolean', function (done) {
|
||||||
var app = express()
|
var app = express()
|
||||||
app.use(function (req, res) {
|
app.use(function (req, res) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user