mirror of
https://github.com/zebrajr/express.git
synced 2026-01-15 12:15:27 +00:00
tests: fix req.acceptsEncodings tests
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user