Implemented the "currentFolder" property for the FileService service in the Library target.

This commit is contained in:
javier committed 2025-01-11 01:28:11 +01:00
1 parent ecbec1f4c8
commit 6938b358e1
3 files changed
+58

No files matched your search

@@ -0,0 +1,22 @@
import Testing
@testable import ColibriLibrary
struct FileServiceTests {
// MARK: Properties tests
@Test("Test the file service provides a current folder URL")
func currentFolder() async {
// GIVEN
let service = FileService()
// WHEN
let url = await service.currentFolder
// THEN
#expect(url.path() == "/private/tmp")
#expect(url.isFileURL == true)
}
}