From 3760af1c1f06dbf3ed4c0dfc52c662714199b30e Mon Sep 17 00:00:00 2001 From: Mikhail Atuchin Date: Wed, 6 Nov 2024 19:04:48 +0400 Subject: [PATCH] Fix tests --- src/finch_tracker/tracker_lib.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/finch_tracker/tracker_lib.test.ts b/src/finch_tracker/tracker_lib.test.ts index 7967fdb6..9b7eeb9a 100644 --- a/src/finch_tracker/tracker_lib.test.ts +++ b/src/finch_tracker/tracker_lib.test.ts @@ -26,7 +26,8 @@ function readDirectory(dir: string): string { continue; } const content = fs.readFileSync(filePath, 'utf-8'); - result += file + '\n' + content + '\n'; + if (result != '') result += '\n'; + result += file + '\n' + content; } return result; }