Skip to content

Commit 535226b

Browse files
committed
test: move lifecycle-path to main test set
1 parent b6df091 commit 535226b

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

test/broken-under-nyc-and-travis/lifecycle-path.js renamed to test/tap/lifecycle-path.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ var fs = require('fs')
22
var path = require('path')
33

44
var mkdirp = require('mkdirp')
5-
var osenv = require('osenv')
65
var rimraf = require('rimraf')
76
var which = require('which')
87
var test = require('tap').test
98

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

13-
var pkg = path.resolve(__dirname, 'lifecycle-path')
12+
var pkg = common.pkg
1413

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

2827
test('setup', function (t) {
29-
cleanup()
30-
mkdirp.sync(pkg)
3128
fs.writeFileSync(
3229
path.join(pkg, 'package.json'),
3330
JSON.stringify({}, null, 2)
@@ -211,13 +208,3 @@ function checkPath (testconfig, t) {
211208
t.end()
212209
})
213210
}
214-
215-
test('cleanup', function (t) {
216-
cleanup()
217-
t.end()
218-
})
219-
220-
function cleanup () {
221-
process.chdir(osenv.tmpdir())
222-
rimraf.sync(pkg)
223-
}

0 commit comments

Comments
 (0)