Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Anonymous961
Copy link
Contributor

Fixes #764

  1. added function for json(), 'text(), bufffer().
  2. added tests for json(), 'text(), bufffer().

Not sure about the stream function. Would like to have more context.

  • Tests pass
  • Appropriate changes to README are included in PR

Signed-off-by: Anil Kumar Behera <[email protected]>
@Anonymous961 Anonymous961 changed the title feat: provide formatters shortcuts #764 feat: provide formatters shortcuts May 17, 2024
@Anonymous961 Anonymous961 requested a review from antongolub May 17, 2024 04:37
@Anonymous961 Anonymous961 requested a review from antongolub May 17, 2024 12:54
assert.equal((await p).toString(), 'foo\n')
})

test('ProcessPromise: implements json()', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not ProcessPromise here but ProcessOutput.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for text() and buffer()? I just followed toString() test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antongolub should I also change ProcessOutput for toString() test?

Copy link
Collaborator

@antongolub antongolub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. we will land the rest part in another PR

@antonmedv antonmedv merged commit 0073c51 into google:main May 19, 2024
antongolub added a commit to antongolub/zx that referenced this pull request May 20, 2024
antonmedv pushed a commit that referenced this pull request May 21, 2024
antonmedv pushed a commit that referenced this pull request May 21, 2024
* feat: provide format methods for `ProcessPromise`

continues #811
relates #764

* feat: expose abortion signal from `ProcessPromise`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat request: provide formatters shortcuts

4 participants