Fix#418-updated method

This commit is contained in:
Deepanjali Gerangal 2018-09-24 19:04:41 -04:00 committed by David Humphrey
parent e3a285ae54
commit 94fd5ba829
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ describe('fsPromises.truncate', function () {
var fsPromises = util.fs().promises;
var contents = 'This is a file.';
fsPromises.writeFile('/myfile', contents)
return fsPromises.writeFile('/myfile', contents)
.then(() => fsPromises.truncate('/myfile', -1))
.catch(error => {
expect(error).to.exist;