fix(test): runBin trim assertion — trim shapes stream ends, not interior

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-08-29 05:12:28 +00:00
co-authored by Claude Fable 5
parent d87e73fa55
commit 74ae357e0f
+2 -1
View File
@@ -27,7 +27,8 @@ describe('runBin', () => {
input: 'piped|', input: 'piped|',
trim: true, trim: true,
}); });
expect(r.stdout).toBe('piped|padded'); // trim shapes the ENDS of the whole stream; interior whitespace stays.
expect(r.stdout).toBe('piped| padded');
expect(r.stderr).toBe('noLANG'); expect(r.stderr).toBe('noLANG');
}); });