fix(coding-agent): formatted and type-fixed tiny-model download test
Reflow biome wrap and replace delete on non-optional isTTY with Reflect.deleteProperty in #3840's text-failure test.
This commit is contained in:
@@ -65,12 +65,12 @@ describe("tiny-models download model resolution", () => {
|
||||
});
|
||||
|
||||
try {
|
||||
await expect(
|
||||
runTinyModelsCommand({ action: "download", model: "lfm2-700m", flags: {} }),
|
||||
).rejects.toThrow("One or more tiny title models failed to download");
|
||||
await expect(runTinyModelsCommand({ action: "download", model: "lfm2-700m", flags: {} })).rejects.toThrow(
|
||||
"One or more tiny title models failed to download",
|
||||
);
|
||||
} finally {
|
||||
if (isTtyDescriptor) Object.defineProperty(process.stdout, "isTTY", isTtyDescriptor);
|
||||
else delete (process.stdout as typeof process.stdout & { isTTY?: boolean }).isTTY;
|
||||
else Reflect.deleteProperty(process.stdout, "isTTY");
|
||||
}
|
||||
|
||||
expect(output.join("")).toContain("Failed to download LFM2 700M: runtime install failed.");
|
||||
|
||||
Reference in New Issue
Block a user