Skip to content

Commit e19db65

Browse files
jshaisaacs
authored andcommitted
Remove dependency on path-is-absolute
Per https://www.npmjs.com/package/path-is-absolute: > This package is no longer relevant as Node.js 0.12 is unmaintained. PR-URL: #477 Credit: @jsha Close: #477 Reviewed-by: @isaacs
1 parent d844b2c commit e19db65

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

test/nodir.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ require("./global-leakage.js")
22
var test = require("tap").test
33
var glob = require('../')
44
var path = require('path')
5-
var isAbsolute = require('path-is-absolute')
65
process.chdir(__dirname + '/fixtures')
76

87
function cacheCheck(g, t) {
98
// verify that path cache keys are all absolute
109
var caches = [ 'cache', 'statCache', 'symlinks' ]
1110
caches.forEach(function (c) {
1211
Object.keys(g[c]).forEach(function (p) {
13-
t.ok(isAbsolute(p), p + ' should be absolute')
12+
t.ok(path.isAbsolute(p), p + ' should be absolute')
1413
})
1514
})
1615
}

test/root-nomount.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ require("./global-leakage.js")
22
var tap = require("tap")
33
var glob = require('../')
44
var path = require('path')
5-
var isAbsolute = require('path-is-absolute')
65

76
function cacheCheck(g, t) {
87
// verify that path cache keys are all absolute
98
var caches = [ 'cache', 'statCache', 'symlinks' ]
109
caches.forEach(function (c) {
1110
Object.keys(g[c]).forEach(function (p) {
12-
t.ok(isAbsolute(p), p + ' should be absolute')
11+
t.ok(path.isAbsolute(p), p + ' should be absolute')
1312
})
1413
})
1514
}

test/root.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ process.chdir(__dirname + '/fixtures')
55

66
var glob = require('../')
77
var path = require('path')
8-
var isAbsolute = require('path-is-absolute')
98

109
function cacheCheck(g, t) {
1110
// verify that path cache keys are all absolute
1211
var caches = [ 'cache', 'statCache', 'symlinks' ]
1312
caches.forEach(function (c) {
1413
Object.keys(g[c]).forEach(function (p) {
15-
t.ok(isAbsolute(p), p + ' should be absolute')
14+
t.ok(path.isAbsolute(p), p + ' should be absolute')
1615
})
1716
})
1817
}

0 commit comments

Comments
 (0)