Skip to content

Commit

Permalink
Use rimraf in test to remove nested directories
Browse files Browse the repository at this point in the history
  • Loading branch information
srguiwiz committed Jun 12, 2018
1 parent 607ab31 commit 2a2bcf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -32,7 +32,6 @@
"devDependencies": {
"chai": "^3.2.0",
"coveralls": "^3.0.1",
"fs-extra": "^6.0.1",
"graceful-fs": "4.1.4",
"mocha": "^5.2.0",
"nyc": "^11.8.0",
Expand Down
4 changes: 2 additions & 2 deletions test.js
Expand Up @@ -7,7 +7,7 @@ var should = chai.should();
var sinon = require('sinon');
var rimraf = require('rimraf');
var fs = require('graceful-fs');
var fse = require('fs-extra');
var rimraf = require('rimraf');
var sysPath = require('path');
var upath = require("upath");
var cp = require('child_process');
Expand Down Expand Up @@ -474,7 +474,7 @@ function runTests(baseopts) {
fs.mkdirSync(testDir2, 0x1ed);
fs.mkdirSync(testDir3, 0x1ed);
watcher.on('unlinkDir', spy).on('ready', function() {
w(fse.remove.bind(fse, testDir2, simpleCb))(); // test removing in one
rimraf(testDir2, simpleCb); // test removing in one
waitFor([spy], function() {
spy.should.have.been.calledWith(testDir2);
spy.should.have.been.calledWith(testDir3);
Expand Down

0 comments on commit 2a2bcf2

Please sign in to comment.