From 3b1cb8af69b0acf55c485ae3721bdb4d9322798e Mon Sep 17 00:00:00 2001 From: Sanskar Gauchan <62867497+Sanskar531@users.noreply.github.com> Date: Sun, 19 Mar 2023 21:49:11 +1100 Subject: test(ext/node): add querystring_test.ts and readline_test.ts (#18256) --- cli/tests/unit_node/readline_test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cli/tests/unit_node/readline_test.ts (limited to 'cli/tests/unit_node/readline_test.ts') diff --git a/cli/tests/unit_node/readline_test.ts b/cli/tests/unit_node/readline_test.ts new file mode 100644 index 000000000..bef9008dd --- /dev/null +++ b/cli/tests/unit_node/readline_test.ts @@ -0,0 +1,14 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +import { createInterface, Interface } from "node:readline"; +import { assertInstanceOf } from "../../../test_util/std/testing/asserts.ts"; +import { Readable, Writable } from "node:stream"; + +Deno.test("[node/readline] createInstance", () => { + const rl = createInterface({ + input: new Readable({ read() {} }), + output: new Writable(), + }); + + // deno-lint-ignore no-explicit-any + assertInstanceOf(rl, Interface as any); +}); -- cgit v1.2.3