blob: 6ba02807f8706ba8d66ecb2f99f1e66ecfbd0f33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
'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.notStrictEqual(http.METHODS.indexOf('GET'), -1);
assert.notStrictEqual(http.METHODS.indexOf('HEAD'), -1);
assert.notStrictEqual(http.METHODS.indexOf('POST'), -1);
assert.deepStrictEqual(util._extend([], http.METHODS), http.METHODS.sort());
|