Skip to main content
Module

std/node/readline_test.ts

Deno standard library
Go to Latest
File
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.import { createInterface, Interface } from "./readline.ts";import { assertInstanceOf } from "../testing/asserts.ts";import { Readable, Writable } from "./stream.ts";
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);});