summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/add-remote-git-submodule.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/add-remote-git-submodule.js')
-rw-r--r--deps/npm/test/tap/add-remote-git-submodule.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/npm/test/tap/add-remote-git-submodule.js b/deps/npm/test/tap/add-remote-git-submodule.js
index f4a51b4f6c..86fcaa0ee2 100644
--- a/deps/npm/test/tap/add-remote-git-submodule.js
+++ b/deps/npm/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)
}