From 0a2b17e02bfee5339eee1940429cedfb2f4893ff Mon Sep 17 00:00:00 2001 From: roboomp Date: Sat, 6 Jun 2026 05:50:23 +0000 Subject: [PATCH] style: bun run fix --- packages/tui/test/issue-1974-repro.test.ts | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/packages/tui/test/issue-1974-repro.test.ts b/packages/tui/test/issue-1974-repro.test.ts index b0923fef7..9511d3f4e 100644 --- a/packages/tui/test/issue-1974-repro.test.ts +++ b/packages/tui/test/issue-1974-repro.test.ts @@ -1,10 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { - type Component, - type NativeScrollbackLiveRegion, - TERMINAL, - TUI, -} from "@oh-my-pi/pi-tui"; +import { type Component, type NativeScrollbackLiveRegion, TERMINAL, TUI } from "@oh-my-pi/pi-tui"; import { VirtualTerminal } from "./virtual-terminal"; // Regression test for https://github.com/can1357/oh-my-pi/issues/1974 @@ -83,10 +78,7 @@ async function settle(term: VirtualTerminal): Promise { await term.flush(); } -async function withEnvPatch( - patch: Record, - run: () => T | Promise, -): Promise { +async function withEnvPatch(patch: Record, run: () => T | Promise): Promise { const saved: Record = {}; for (const key in patch) { saved[key] = Bun.env[key]; @@ -233,9 +225,7 @@ describe("issue #1974: tmux scrollback rendering", () => { const writes = capture(term); for (let chunk = 5; chunk <= 40; chunk += 5) { - stream.setLines( - Array.from({ length: chunk }, (_unused, i) => `row-${String(i).padStart(3, "0")}`), - ); + stream.setLines(Array.from({ length: chunk }, (_unused, i) => `row-${String(i).padStart(3, "0")}`)); tui.requestRender(); await settle(term); }