Skip to content

Commit

Permalink
test: add case to test-http-methods.js
Browse files Browse the repository at this point in the history
Add more case to check existence of DELETE and PUT methods.

Refs: nodejs#14544
  • Loading branch information
oantoro committed Aug 11, 2017
1 parent 7307839 commit 30ea061
Showing 1 changed file with 2 additions and 0 deletions.
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);
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());

0 comments on commit 30ea061

Please sign in to comment.