Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d8ed591

Browse files
committedFeb 21, 2022
tests: fix req.acceptsLanguage tests
1 parent 8ee3420 commit d8ed591

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎test/req.acceptsLanguage.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ describe('req', function(){
1010

1111
app.get('/', function (req, res) {
1212
res.send({
13-
'en-us': req.acceptsLanguages('en-us'),
14-
en: req.acceptsLanguages('en')
13+
'en-us': req.acceptsLanguage('en-us'),
14+
en: req.acceptsLanguage('en')
1515
})
1616
})
1717

@@ -26,7 +26,7 @@ describe('req', function(){
2626

2727
app.get('/', function (req, res) {
2828
res.send({
29-
es: req.acceptsLanguages('es')
29+
es: req.acceptsLanguage('es')
3030
})
3131
})
3232

@@ -42,9 +42,9 @@ describe('req', function(){
4242

4343
app.get('/', function (req, res) {
4444
res.send({
45-
en: req.acceptsLanguages('en'),
46-
es: req.acceptsLanguages('es'),
47-
jp: req.acceptsLanguages('jp')
45+
en: req.acceptsLanguage('en'),
46+
es: req.acceptsLanguage('es'),
47+
jp: req.acceptsLanguage('jp')
4848
})
4949
})
5050

0 commit comments

Comments
 (0)
Please sign in to comment.