Skip to content

Commit

Permalink
Small promise fix
Browse files Browse the repository at this point in the history
Make sure directory is properly deleted before next test.
  • Loading branch information
ccwilson-us-ibm-com committed May 9, 2016
1 parent cecccd8 commit f213777
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/fileOperations.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,9 +952,9 @@ describe('mkdirp', function() {
fs.stat(dir, function(err2, stats) {
expect(err2).toNotExist();
expect(stats.mode & MODE_MASK).toEqual(mode & ~process.umask());
del(dir);

done();
del(dir).then(function() {
done();
});
});
});
});
Expand All @@ -974,7 +974,7 @@ describe('mkdirp', function() {
expect(err2).toNotExist();
expect(stats.mode & MODE_MASK).toEqual(mode & ~process.umask());
del(path.join(__dirname, './fixtures/bif'))
.then(function(results) {
.then(function() {
done();
});
});
Expand Down

0 comments on commit f213777

Please sign in to comment.