-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add a test for truncate when length is NaN #499
Comments
I'll see this one through to finish - keep your 👀 open for a PR! |
Update: Very interesting - there is no Test Output: The implementation can be found starting at: filer/src/filesystem/implementation.js Line 1229 in e3a1187
Update 2: It looks like the length is only checked if it's length is less than filer/src/filesystem/implementation.js Lines 1280 to 1284 in e3a1187
|
Let's consider adding a test for when
fs.truncate
'slength
parameter isNaN
(ie. Not a number likestringInputForTruncateExplodes
).The tests live within
filer/tests/spec/fs.truncate.spec.js
and could possibly slide right under the testwhen length is negative
!Node.js docs
The text was updated successfully, but these errors were encountered: