diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-05-13 20:03:28 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 04:55:20 +0300 |
commit | 321d7c82c532e1ad35d15907e130cab874660e54 (patch) | |
tree | 57d642e2747015f1cf66a0b6498c487e5af33399 /test | |
parent | a08c37120f50e7ccdc10e302e36d0f8025d12d66 (diff) |
standard: clean up test directories
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/bundled-dependencies-nonarray.js | 2 | ||||
-rw-r--r-- | test/tap/doctor.js | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/tap/bundled-dependencies-nonarray.js b/test/tap/bundled-dependencies-nonarray.js index 04bcfc7d8..8f8eeb358 100644 --- a/test/tap/bundled-dependencies-nonarray.js +++ b/test/tap/bundled-dependencies-nonarray.js @@ -50,7 +50,7 @@ test('errors on non-array bundleddependencies', function (t) { }) test('cleanup', function (t) { -// cleanup() + cleanup() t.end() }) diff --git a/test/tap/doctor.js b/test/tap/doctor.js index bb1a5a945..fa1a5fad1 100644 --- a/test/tap/doctor.js +++ b/test/tap/doctor.js @@ -5,6 +5,7 @@ const http = require('http') const mr = require('npm-registry-mock') const npm = require('../../lib/npm.js') const path = require('path') +const rimraf = require('rimraf') const Tacks = require('tacks') const test = require('tap').test const which = require('which') @@ -97,3 +98,8 @@ test('npm doctor', function (t) { }) }) }) + +test('cleanup', (t) => { + rimraf.sync(ROOT) + t.done() +}) |