Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/tap/add-remote-git-submodule.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/tap/add-remote-git-submodule.js b/test/tap/add-remote-git-submodule.js
index f4a51b4f6..86fcaa0ee 100644
--- a/test/tap/add-remote-git-submodule.js
+++ b/test/tap/add-remote-git-submodule.js
@@ -69,13 +69,11 @@ test('clean', function (t) {
})
function bootstrap (t) {
+ process.chdir(osenv.tmpdir())
+ rimraf.sync(pkg)
mkdirp.sync(pkg)
process.chdir(pkg)
fs.writeFileSync('package.json', pjParent)
- t.tearDown(function () {
- process.chdir(osenv.tmpdir())
- rimraf.sync(pkg)
- })
}
function setup (cb) {
@@ -142,4 +140,5 @@ function setup (cb) {
function cleanup () {
process.chdir(osenv.tmpdir())
rimraf.sync(repos)
+ rimraf.sync(pkg)
}