mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 00:19:48 +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) {
|
||||
res.send({
|
||||
gzip: req.acceptsEncoding('gzip'),
|
||||
deflate: req.acceptsEncoding('deflate')
|
||||
gzip: req.acceptsEncodings('gzip'),
|
||||
deflate: req.acceptsEncodings('deflate')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ describe('req', function(){
|
|||
|
||||
app.get('/', function (req, res) {
|
||||
res.send({
|
||||
bogus: req.acceptsEncoding('bogus')
|
||||
bogus: req.acceptsEncodings('bogus')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user