mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-10 18:50:18 +01:00
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:
1 parent
d87e73fa55
commit
74ae357e0f
1 file changed
+2
-1
@@ -27,7 +27,8 @@ describe('runBin', () => {
|
||||
input: 'piped|',
|
||||
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');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user