Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ProcessPromise.valueOf() #737

Merged
merged 1 commit into from Mar 18, 2024
Merged

Conversation

antongolub
Copy link
Contributor

closes #690

test('ProcessPromise: implements toString()', async () => {
  const p = $`echo foo`
  assert.equal((await p).toString(), 'foo\n')
})

test('ProcessPromise: implements valueOf()', async () => {
  const p = $`echo foo`
  assert.equal((await p).valueOf(), 'foo')
  assert.ok((await p) == 'foo')
})

@antonmedv antonmedv merged commit 0640b80 into google:main Mar 18, 2024
10 checks passed
@antongolub antongolub deleted the add-value-of branch March 18, 2024 06:03
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.

feature request: trim option
2 participants