Skip to main content
Module

x/cliffy/ansi/tty_test.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
File
import { assertEquals } from "../dev_deps.ts";import { tty } from "./tty.ts";
Deno.test({ name: "ansi - tty - chainable tty", fn() { assertEquals( typeof tty.eraseDown === "function", true, ); },});
Deno.test({ name: "ansi - tty - chainable tty custom instance", fn() { assertEquals( typeof tty().text("foo").getCursorPosition === "function", true, ); },});
Deno.test({ name: "ansi - empty ansi chain", fn() { assertEquals( typeof tty({ stdout: Deno.stdout, stdin: Deno.stdin, })() === "function", true, ); },});