summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-incoming-message-destroy.js
blob: 4241ec8e7d85effdc8345c11503f06392b13702b (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';

// Test that http.IncomingMessage,prototype.destroy() returns `this`.
require('../common');

const assert = require('assert');
const http = require('http');
const incomingMessage = new http.IncomingMessage();

assert.strictEqual(incomingMessage.destroy(), incomingMessage);