Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: add case to test-http-methods.js
Add more case to check existence of DELETE and PUT methods.

Refs: #14544
  • Loading branch information
Oky Antoro committed Aug 11, 2017
commit 30ea061afb54717ba737e5f65ac56b96630310bd
2 changes: 2 additions & 0 deletions test/parallel/test-http-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const util = require('util');

assert(Array.isArray(http.METHODS));
assert(http.METHODS.length > 0);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This check is now redundant, you may safely remove it.

assert(http.METHODS.includes('DELETE'));
assert(http.METHODS.includes('GET'));
assert(http.METHODS.includes('HEAD'));
assert(http.METHODS.includes('POST'));
assert(http.METHODS.includes('PUT'));
assert.deepStrictEqual(util._extend([], http.METHODS), http.METHODS.sort());