summaryrefslogtreecommitdiff
path: root/cli/tests/node_compat/test
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-05-27 15:42:20 +0200
committerGitHub <noreply@github.com>2023-05-27 15:42:20 +0200
commitbe59e93220e24a2e66ae2843a136e61eab9d8ac3 (patch)
tree9c49d56516d1f126234d4e11e276750c6028b42a /cli/tests/node_compat/test
parentd0c5ff42f4b5fa9b848e6ed5af2e480d12f15bda (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.js20
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);