Release 1.0.3: refine tablet layouts, pointer selection and account sync cleanup
Build iOS / build (push) Successful in 4m45s
Build App Bundle / build (push) Successful in 7m7s

This commit is contained in:
Ayushya Amitabh
2026-10-09 00:36:42 -04:00
parent 79085874a1
commit 0a4608e6c3
67 changed files with 1740 additions and 451 deletions
+15
View File
@@ -237,6 +237,21 @@ final class SyncEngineTests: XCTestCase {
// MARK: - The happy path
func testRemovingAccountDeletesMirrorAndStateButPreservesOtherAccounts() async throws {
seedServer()
_ = await runner.run(config, force: false)
let other = store.syncRoot(accountId: "other").appendingPathComponent("keep.txt")
try Data("keep".utf8).write(to: other)
let mirrorPath = store.base.appendingPathComponent("sync/acct")
let statePath = store.base.appendingPathComponent("sync-state/acct")
try store.removeAccountData(accountId: "acct")
XCTAssertFalse(FileManager.default.fileExists(atPath: mirrorPath.path))
XCTAssertFalse(FileManager.default.fileExists(atPath: statePath.path))
XCTAssertTrue(FileManager.default.fileExists(atPath: other.path))
XCTAssertTrue(try store.loadState(accountId: "acct").isEmpty)
try store.removeAccountData(accountId: "acct")
}
func testFirstSyncDownloadsEverythingAndMirrorsFolders() async {
seedServer()
FakeDav.mkdir("/Docs/empty")