升级 AppStore 缓存 Key 并在覆盖安装时强制重新登录。
统一账号作用域 Key 对齐 Android,新增缓存 schema 迁移清理旧数据,并同步更新相关模块与单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -9,9 +9,18 @@ import XCTest
|
||||
@MainActor
|
||||
final class DepositOrderListViewModelTests: XCTestCase {
|
||||
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
AppStore.shared.logout()
|
||||
AppStore.shared.session.configureTestAccount(
|
||||
userId: "deposit-order-user",
|
||||
accountType: .storeUser,
|
||||
scenicId: 10
|
||||
)
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
AppStore.shared.session.currentStoreId = 0
|
||||
AppStore.shared.session.currentScenicId = 0
|
||||
AppStore.shared.logout()
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
@ -61,4 +70,4 @@ final class DepositOrderListViewModelTests: XCTestCase {
|
||||
let other = try JSONDecoder().decode(StoreOrderItem.self, from: otherJSON)
|
||||
XCTAssertFalse(viewModel.canOpenDetail(for: other))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user