Fix#418-updated method
This commit is contained in:
parent
e3a285ae54
commit
94fd5ba829
|
@ -231,7 +231,7 @@ describe('fsPromises.truncate', function () {
|
||||||
var fsPromises = util.fs().promises;
|
var fsPromises = util.fs().promises;
|
||||||
var contents = 'This is a file.';
|
var contents = 'This is a file.';
|
||||||
|
|
||||||
fsPromises.writeFile('/myfile', contents)
|
return fsPromises.writeFile('/myfile', contents)
|
||||||
.then(() => fsPromises.truncate('/myfile', -1))
|
.then(() => fsPromises.truncate('/myfile', -1))
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
expect(error).to.exist;
|
expect(error).to.exist;
|
||||||
|
|
Loading…
Reference in New Issue