-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
docs: update options in filehandle.appendFile() #56972
base: main
Are you sure you want to change the base?
Conversation
await assert.rejects(fileHandle.appendFile(buffer, { signal }), { | ||
name: 'AbortError' | ||
}); | ||
} finally { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The try...catch
is not needed as the process exits when an error occurs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I removed in 78c5b07.
validateAppendBuffer(), | ||
validateAppendString(), | ||
doAppendAndCancel(), | ||
]).then(common.mustCall()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
]).then(common.mustCall()); | |
]); |
This is no longer needed. By default, an unhandled promise rejection makes the process exit with a non-zero exit code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I fixed in 27ae1f8.
Please replace |
d40ef79
to
47fb2d6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #56972 +/- ##
=======================================
Coverage 89.13% 89.13%
=======================================
Files 665 665
Lines 193165 193174 +9
Branches 37191 37193 +2
=======================================
+ Hits 172181 172193 +12
- Misses 13729 13740 +11
+ Partials 7255 7241 -14 |
Can you please rebase and foce push to keep only two commits? Thank you. |
78c5b07
to
42595e2
Compare
I updated the documentation for the
filehandle.appendFile()
options.And I also added related tests.