From 7fb610b7c040ae27d6eb74a7638eca6c0c4de13f Mon Sep 17 00:00:00 2001 From: Raees Iqbal Date: Fri, 17 Apr 2020 19:42:35 -0700 Subject: [PATCH] findRoot: Fix test --- src/utils/find-root/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/find-root/index.test.js b/src/utils/find-root/index.test.js index bdd4af4e2ac..7e7993abee1 100644 --- a/src/utils/find-root/index.test.js +++ b/src/utils/find-root/index.test.js @@ -34,5 +34,5 @@ test('Find root with no indicators', t => { const tmp = tempy.directory() const subPath = path.join(tmp, 'some', 'sub', 'dir') mkdirp.sync(subPath) - t.is(findRoot(subPath), subPath, 'CWD if no indicators are located') + t.is(findRoot(subPath, { rootIndicators: ['.non-existent'] }), subPath, 'CWD if no indicators are located') })