mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-02 03:10:59 +02: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:
co-authored by
Claude Fable 5
parent
d87e73fa55
commit
74ae357e0f
@@ -27,6 +27,7 @@ describe('runBin', () => {
|
|||||||
input: 'piped|',
|
input: 'piped|',
|
||||||
trim: true,
|
trim: true,
|
||||||
});
|
});
|
||||||
|
// trim shapes the ENDS of the whole stream; interior whitespace stays.
|
||||||
expect(r.stdout).toBe('piped| padded');
|
expect(r.stdout).toBe('piped| padded');
|
||||||
expect(r.stderr).toBe('noLANG');
|
expect(r.stderr).toBe('noLANG');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user