diff --git a/test/nodir.js b/test/nodir.js index 1f095694..01cc8b01 100644 --- a/test/nodir.js +++ b/test/nodir.js @@ -2,7 +2,6 @@ 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) { @@ -10,7 +9,7 @@ function cacheCheck(g, t) { 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') }) }) } diff --git a/test/root-nomount.js b/test/root-nomount.js index 1417d4d4..98943095 100644 --- a/test/root-nomount.js +++ b/test/root-nomount.js @@ -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') }) }) } diff --git a/test/root.js b/test/root.js index eb87e3c2..1e4e75b9 100644 --- a/test/root.js +++ b/test/root.js @@ -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') }) }) }