/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/unit/tty_test.ts
22 строки
605 B
Kenta Moriuchi
chore: Happy New Year 2026 (#31748)
08 янв 2026, 18:28
Не верифицирован
08 янв 2026, 18:28
8193cf9
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. // deno-lint-ignore-file no-deprecated-deno-api import { assert } from "./test_util.ts"; // Note tests for Deno.stdin.setRaw is in integration tests. Deno.test(function consoleSize() { if (!Deno.stdout.isTerminal()) { return; } const result = Deno.consoleSize(); assert(typeof result.columns !== "undefined"); assert(typeof result.rows !== "undefined"); }); Deno.test(function isattyDoesntRaiseOnBadRid() { // Absurdly large rid. // @ts-ignore `Deno.isatty()` was soft-removed in Deno 2. assert(!Deno.isatty(0x7fffffff)); });