Skip to content

Commit

Permalink
Remove dependency on path-is-absolute
Browse files Browse the repository at this point in the history
Per https://www.npmjs.com/package/path-is-absolute:

> This package is no longer relevant as Node.js 0.12 is unmaintained.
  • Loading branch information
jsha committed May 16, 2022
1 parent d844b2c commit 24530a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/nodir.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ require("./global-leakage.js")
var test = require("tap").test
var glob = require('../')
var path = require('path')
var isAbsolute = require('path-is-absolute')
process.chdir(__dirname + '/fixtures')

function cacheCheck(g, t) {
// verify that path cache keys are all absolute
var caches = [ 'cache', 'statCache', 'symlinks' ]
caches.forEach(function (c) {
Object.keys(g[c]).forEach(function (p) {
t.ok(isAbsolute(p), p + ' should be absolute')
t.ok(path.isAbsolute(p), p + ' should be absolute')
})
})
}
Expand Down
3 changes: 1 addition & 2 deletions test/root-nomount.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ require("./global-leakage.js")
var tap = require("tap")
var glob = require('../')
var path = require('path')
var isAbsolute = require('path-is-absolute')

function cacheCheck(g, t) {
// verify that path cache keys are all absolute
var caches = [ 'cache', 'statCache', 'symlinks' ]
caches.forEach(function (c) {
Object.keys(g[c]).forEach(function (p) {
t.ok(isAbsolute(p), p + ' should be absolute')
t.ok(path.isAbsolute(p), p + ' should be absolute')
})
})
}
Expand Down
3 changes: 1 addition & 2 deletions test/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ process.chdir(__dirname + '/fixtures')

var glob = require('../')
var path = require('path')
var isAbsolute = require('path-is-absolute')

function cacheCheck(g, t) {
// verify that path cache keys are all absolute
var caches = [ 'cache', 'statCache', 'symlinks' ]
caches.forEach(function (c) {
Object.keys(g[c]).forEach(function (p) {
t.ok(isAbsolute(p), p + ' should be absolute')
t.ok(path.isAbsolute(p), p + ' should be absolute')
})
})
}
Expand Down

0 comments on commit 24530a1

Please sign in to comment.