mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
tests: fix req.acceptsEncodings tests
This commit is contained in:
parent
3d7fce56a3
commit
8ee3420f0f
|
|
@ -10,8 +10,8 @@ describe('req', function(){
|
||||||
|
|
||||||
app.get('/', function (req, res) {
|
app.get('/', function (req, res) {
|
||||||
res.send({
|
res.send({
|
||||||
gzip: req.acceptsEncoding('gzip'),
|
gzip: req.acceptsEncodings('gzip'),
|
||||||
deflate: req.acceptsEncoding('deflate')
|
deflate: req.acceptsEncodings('deflate')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ describe('req', function(){
|
||||||
|
|
||||||
app.get('/', function (req, res) {
|
app.get('/', function (req, res) {
|
||||||
res.send({
|
res.send({
|
||||||
bogus: req.acceptsEncoding('bogus')
|
bogus: req.acceptsEncodings('bogus')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user