mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
PR-URL: https://github.com/nodejs/node/pull/13852 Refs: https://github.com/nodejs/node/issues/12586 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
13 lines
394 B
JavaScript
13 lines
394 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const http = require('http');
|
|
const util = require('util');
|
|
|
|
assert(Array.isArray(http.METHODS));
|
|
assert(http.METHODS.length > 0);
|
|
assert(http.METHODS.includes('GET'));
|
|
assert(http.METHODS.includes('HEAD'));
|
|
assert(http.METHODS.includes('POST'));
|
|
assert.deepStrictEqual(util._extend([], http.METHODS), http.METHODS.sort());
|