From 2a2bcf2f11d5475afb010ea3e3de2ddae255b4e8 Mon Sep 17 00:00:00 2001 From: Leo Baschy Date: Tue, 12 Jun 2018 09:25:37 -0700 Subject: [PATCH] Use rimraf in test to remove nested directories --- package.json | 1 - test.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b75dc052..6901b03b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test.js b/test.js index a8852ca0..ea2f63b8 100644 --- a/test.js +++ b/test.js @@ -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'); @@ -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);