aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/add-remote-git-submodule.js
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2017-04-12 21:47:49 -0700
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2017-04-25 10:52:01 -0400
commit00842604483e4c2e622dfdb3a97440e07646158f (patch)
treef3346902636a44b6037652523767636bf7e4f2c9 /deps/npm/test/tap/add-remote-git-submodule.js
parent061c5da010e0d249379618382a499840d38247b8 (diff)
downloadandroid-node-v8-00842604483e4c2e622dfdb3a97440e07646158f.tar.gz
android-node-v8-00842604483e4c2e622dfdb3a97440e07646158f.tar.bz2
android-node-v8-00842604483e4c2e622dfdb3a97440e07646158f.zip
deps: upgrade npm to 4.5.0
PR-URL: https://github.com/nodejs/node/pull/12480 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
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)
}