tests: document remote token persistence across mode toggle

This commit is contained in:
Charles Dusek
2026-03-04 10:25:05 -06:00
committed by Nimrod Gutman
parent 37e0b01684
commit 3b7a72bffb

View File

@@ -57,6 +57,7 @@ struct AppStateRemoteConfigTests {
remoteToken: "")
let localGateway = localRoot["gateway"] as? [String: Any]
let localRemoteConfig = localGateway?["remote"] as? [String: Any]
// Local mode should not discard remote token state; users can return to remote mode later.
#expect(localGateway?["mode"] as? String == "local")
#expect(localRemoteConfig?["token"] as? String == "persisted-token")