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

Adding testing with promises for fs.AppendFile() #399

Closed
JoshuaRM opened this issue Sep 18, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@JoshuaRM
Copy link

commented Sep 18, 2018

I noticed there are no existing test cases for the AppendFile method with promises, so I have included those. These new tests include the following specifications:

fs.promises.appendFile:

  •  should be a function
    
  •  should append a utf8 file without specifying utf8 in appendFile
    
  •  should append a utf8 file with "utf8" option to appendFile
    
  •  should append a utf8 file with {encoding: "utf8"} option to appendFile
    
  •  should append a binary file
    
  •  should follow symbolic links
    
  •  should work when file does not exist, and create the file
    

All of these tests have been successfully passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.