Skip to content

Commit

Permalink
fix: fill stdall store on sync spawn
Browse files Browse the repository at this point in the history
closes google#911
  • Loading branch information
antongolub committed Sep 25, 2024
1 parent 1ec4b17 commit a983b13
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"typescript": "^5.6.2",
"which": "^4.0.0",
"yaml": "^2.5.1",
"zurk": "^0.4.3"
"zurk": "^0.4.4"
},
"publishConfig": {
"registry": "https://wombat-dressing-room.appspot.com"
Expand Down
8 changes: 6 additions & 2 deletions test/core.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,12 @@ describe('core', () => {
})

test('lines()', async () => {
const p = $`echo 'foo\nbar\r\nbaz'`
assert.deepEqual(await p.lines(), ['foo', 'bar', 'baz'])
const p1 = $`echo 'foo\nbar\r\nbaz'`
assert.deepEqual(await p1.lines(), ['foo', 'bar', 'baz'])

const p2 = $.sync`echo 'foo\nbar\r\nbaz'`
console.log('p2', p2)
assert.deepEqual(p2.lines(), ['foo', 'bar', 'baz'])
})

test('buffer()', async () => {
Expand Down

0 comments on commit a983b13

Please sign in to comment.