tests: fix req.acceptsEncodings tests

This commit is contained in:
Douglas Christopher Wilson 2022-02-20 23:43:02 -05:00
parent 3d7fce56a3
commit 8ee3420f0f

View File

@ -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')
}) })
}) })