diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-05-27 15:42:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-27 15:42:20 +0200 |
commit | be59e93220e24a2e66ae2843a136e61eab9d8ac3 (patch) | |
tree | 9c49d56516d1f126234d4e11e276750c6028b42a /cli/tests/node_compat/test | |
parent | d0c5ff42f4b5fa9b848e6ed5af2e480d12f15bda (diff) |
refactor(node/http): don't use readablestream for writing to request (#19282)
Refactors the internal usage of a readablestream to write to the
resource directly
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests/node_compat/test')
-rw-r--r-- | cli/tests/node_compat/test/parallel/test-client-request-destroy.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-client-request-destroy.js b/cli/tests/node_compat/test/parallel/test-client-request-destroy.js deleted file mode 100644 index f7e11ae0b..000000000 --- a/cli/tests/node_compat/test/parallel/test-client-request-destroy.js +++ /dev/null @@ -1,20 +0,0 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file - -// Copyright Joyent and Node contributors. All rights reserved. MIT license. -// Taken from Node 18.12.1 -// This file is automatically generated by "node/_tools/setup.ts". Do not modify this file manually - -'use strict'; - -// Test that http.ClientRequest,prototype.destroy() returns `this`. -require('../common'); - -const assert = require('assert'); -const http = require('http'); -const clientRequest = new http.ClientRequest({ createConnection: () => {} }); - -assert.strictEqual(clientRequest.destroyed, false); -assert.strictEqual(clientRequest.destroy(), clientRequest); -assert.strictEqual(clientRequest.destroyed, true); -assert.strictEqual(clientRequest.destroy(), clientRequest); |