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

test: add test coverage for fs.truncate #23620

Merged
merged 1 commit into from
Oct 15, 2018

Commits on Oct 15, 2018

  1. test: add test coverage for fs.truncate

    Add test to check:
    - for `null` as len parameter
    - if error is propagated into callback if file doesn't exist
    - if an error is actually thrown if len is not a number
    
    PR-URL: nodejs#23620
    Reviewed-By: Refael Ackermann <refack@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    christian-bromann authored and refack committed Oct 15, 2018
    Configuration menu
    Copy the full SHA
    74f854e View commit details
    Browse the repository at this point in the history