Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test: enhance req.is() tests with additional cases#6703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
bjohansebas wants to merge2 commits intomaster
base:master
Choose a base branch
Loading
fromreq.is

Conversation

@bjohansebas
Copy link
Member

@bjohansebasbjohansebas commentedAug 12, 2025
edited
Loading

Basically, we support an array as an argument for req.is. This hasn’t been documented, and we should document it on the website.

Ref:

if(!Array.isArray(types)){

@bjohansebasbjohansebas requested a review froma teamAugust 12, 2025 22:57
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
@@ -1,7 +1,8 @@
'use strict'

varexpress=require('..')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
varexpress=require('..')
constexpress=require('..')

'use strict'

varexpress=require('..')
varrequest=require('supertest')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
varrequest=require('supertest')
constrequest=require('supertest')


varexpress=require('..')
varrequest=require('supertest')
varafter=require('after')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
varafter=require('after')
constafter=require('after')

// in modern JS is better to use const instead of var!

Copy link

@hamidrezaghavamihamidrezaghavami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

your code was so structured, I mainly review it for learning purposes, well done!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@hamidrezaghavamihamidrezaghavamihamidrezaghavami left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@bjohansebas@hamidrezaghavami

[8]ページ先頭

©2009-2025 Movatter.jp