From f7347b6674d8ee6f14977a470016b7c8f6d2ece4 Mon Sep 17 00:00:00 2001
From: Lucas Theisen <lucastheisen@pastdev.com>
Date: Thu, 25 May 2017 15:08:01 -0400
Subject: [PATCH] added check for *nix because existsSync('/') lies

---
 test/specs/config.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/specs/config.ts b/test/specs/config.ts
index 5b8f37c..b264787 100644
--- a/test/specs/config.ts
+++ b/test/specs/config.ts
@@ -87,7 +87,7 @@ function mock (fileName: string, data: any): void {
 }
 
 function clear (): void {
-  if (fs.existsSync(root)) {
+  if (root === '/' || fs.existsSync(root)) {
     fs.readdirSync(root).forEach(dir => {
       fs.rmdirSync(path.join(root, dir))
     })