From d8ed591117295f528c59d0f0367064ffde96d427 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 20 Feb 2022 23:49:42 -0500 Subject: [PATCH] tests: fix req.acceptsLanguage tests --- test/req.acceptsLanguage.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/req.acceptsLanguage.js b/test/req.acceptsLanguage.js index 816be244..39bd73c4 100644 --- a/test/req.acceptsLanguage.js +++ b/test/req.acceptsLanguage.js @@ -10,8 +10,8 @@ describe('req', function(){ app.get('/', function (req, res) { res.send({ - 'en-us': req.acceptsLanguages('en-us'), - en: req.acceptsLanguages('en') + 'en-us': req.acceptsLanguage('en-us'), + en: req.acceptsLanguage('en') }) }) @@ -26,7 +26,7 @@ describe('req', function(){ app.get('/', function (req, res) { res.send({ - es: req.acceptsLanguages('es') + es: req.acceptsLanguage('es') }) }) @@ -42,9 +42,9 @@ describe('req', function(){ app.get('/', function (req, res) { res.send({ - en: req.acceptsLanguages('en'), - es: req.acceptsLanguages('es'), - jp: req.acceptsLanguages('jp') + en: req.acceptsLanguage('en'), + es: req.acceptsLanguage('es'), + jp: req.acceptsLanguage('jp') }) }) -- 2.11.4.GIT