diff options
author | isaacs <i@izs.me> | 2015-02-07 21:40:46 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-02-13 05:03:43 +0300 |
commit | 8e6a824f0f5a1ed94cd5947a1a3afd85ed8a8c26 (patch) | |
tree | 4c43efa22a0db072e5601e023c834ad0685724f4 /test/tap | |
parent | a9aff38719918486fc381d67ad3371c475632ff7 (diff) |
test: Clean folders on start for add-remote-git-fake-windows
Diffstat (limited to 'test/tap')
-rw-r--r-- | test/tap/add-remote-git-fake-windows.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tap/add-remote-git-fake-windows.js b/test/tap/add-remote-git-fake-windows.js index 5de7cff7d..305247792 100644 --- a/test/tap/add-remote-git-fake-windows.js +++ b/test/tap/add-remote-git-fake-windows.js @@ -20,7 +20,9 @@ var git test("setup", function (t) { bootstrap() setup(function (er, r) { - t.ifError(er, "git started up successfully") + if (er) { + throw er + } if (!er) { daemon = r[r.length - 2] @@ -66,11 +68,13 @@ var pjChild = JSON.stringify({ }, null, 2) + "\n" function bootstrap () { + rimraf.sync(pkg) mkdirp.sync(pkg) fs.writeFileSync(resolve(pkg, "package.json"), pjParent) } function setup (cb) { + rimraf.sync(repo) mkdirp.sync(repo) fs.writeFileSync(resolve(repo, "package.json"), pjChild) npm.load({ registry : common.registry, loglevel : "silent" }, function () { |