test if file exists before doing backup test

This commit is contained in:
Salar Rahmanian 2025-02-09 10:11:13 -08:00
parent 41d508c1de
commit 984cd30c29

View file

@ -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],