Buckets:
| import { expect, test } from "bun:test" | |
| import { destroyRenderer } from "../../src/util/renderer" | |
| test("clears the terminal title before destroying the renderer", () => { | |
| const calls: string[] = [] | |
| destroyRenderer({ | |
| isDestroyed: false, | |
| setTerminalTitle(title) { | |
| calls.push(`title:${title}`) | |
| }, | |
| destroy() { | |
| calls.push("destroy") | |
| }, | |
| }) | |
| expect(calls).toEqual(["title:", "destroy"]) | |
| }) | |
| test("still clears the title after renderer destruction", () => { | |
| const calls: string[] = [] | |
| destroyRenderer({ | |
| isDestroyed: true, | |
| setTerminalTitle(title) { | |
| calls.push(`title:${title}`) | |
| }, | |
| destroy() { | |
| calls.push("destroy") | |
| }, | |
| }) | |
| expect(calls).toEqual(["title:"]) | |
| }) | |
Xet Storage Details
- Size:
- 729 Bytes
- Xet hash:
- c40c034ddf9c99b7381df8d130eb21ee5e4f5d03a72a24d89fcdca62aab7bf4f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.