diff --git a/test/heavy.js b/test/heavy.js index 7801ae2..b18c490 100644 --- a/test/heavy.js +++ b/test/heavy.js @@ -10,7 +10,7 @@ var indexPath = './heavy.index'; var testJson = JSON.parse(fs.readFileSync("./test/facebook.json")); -if (path.existsSync(indexPath)) { +if (fs.existsSync(indexPath)) { wrench.rmdirSyncRecursive(indexPath); } diff --git a/test/index.js b/test/index.js index d6d8dcd..a648eaa 100644 --- a/test/index.js +++ b/test/index.js @@ -8,7 +8,7 @@ var clucene = new cl.Lucene(); var indexPath = './test.index'; exports['add new document'] = function (test) { - if (path.existsSync(indexPath)) { + if (fs.existsSync(indexPath)) { wrench.rmdirSyncRecursive(indexPath); }