Skip to content

Commit

Permalink
test: move lifecycle-path to main test set
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 9, 2019
1 parent b6df091 commit 535226b
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ var fs = require('fs')
var path = require('path')

var mkdirp = require('mkdirp')
var osenv = require('osenv')
var rimraf = require('rimraf')
var which = require('which')
var test = require('tap').test

var common = require('../common-tap.js')
var isWindows = require('../../lib/utils/is-windows.js')

var pkg = path.resolve(__dirname, 'lifecycle-path')
var pkg = common.pkg

var PATH
if (isWindows) {
Expand All @@ -26,8 +25,6 @@ var systemNode = which.sync('node', { nothrow: true, path: PATH })
// the path to the system wide node (null if none)

test('setup', function (t) {
cleanup()
mkdirp.sync(pkg)
fs.writeFileSync(
path.join(pkg, 'package.json'),
JSON.stringify({}, null, 2)
Expand Down Expand Up @@ -211,13 +208,3 @@ function checkPath (testconfig, t) {
t.end()
})
}

test('cleanup', function (t) {
cleanup()
t.end()
})

function cleanup () {
process.chdir(osenv.tmpdir())
rimraf.sync(pkg)
}

0 comments on commit 535226b

Please sign in to comment.