deno.land / std@0.166.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
Deno standard library
GitHub Repositorydenoland/deno_std
GitHub Stars
2447

Version Info

Tagged at
2 months ago