deno.land / std@0.157.0 / node / readline_test.ts

readline_test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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);});
std

Version Info

Tagged at
a year ago