From 984cd30c29c6131b9c1cbdda41300aaa748466c8 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 9 Feb 2025 10:11:13 -0800 Subject: [PATCH] test if file exists before doing backup test --- Tests/ParserTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/ParserTests.swift b/Tests/ParserTests.swift index c9589f6..a70b96d 100644 --- a/Tests/ParserTests.swift +++ b/Tests/ParserTests.swift @@ -62,6 +62,8 @@ final class ParserTests { #expect(fileContent == expectedEntry) // confirm backup functionality is working + #expect(FileManager.default.fileExists(atPath: filePathforWriteTest.path)) + let write_again = writeFishHistory( to: filePathforWriteTest.path, history: [historyItem],