添加景区选择与合作订单流程并对齐 Android
This commit is contained in:
@ -44,6 +44,22 @@ final class ProfileViewModelTests: XCTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
func testAccountTypeLabelForStoreAccount() {
|
||||
AppStore.shared.accountType = V9StoreUser.accountTypeValue
|
||||
let viewModel = ProfileViewModel()
|
||||
XCTAssertEqual(viewModel.accountTypeLabel, "门店账号")
|
||||
XCTAssertTrue(viewModel.isStoreAccount)
|
||||
AppStore.shared.accountType = ""
|
||||
}
|
||||
|
||||
func testAccountTypeLabelForScenicAccount() {
|
||||
AppStore.shared.accountType = V9ScenicUser.accountTypeValue
|
||||
let viewModel = ProfileViewModel()
|
||||
XCTAssertEqual(viewModel.accountTypeLabel, "景区账号")
|
||||
XCTAssertFalse(viewModel.isStoreAccount)
|
||||
AppStore.shared.accountType = ""
|
||||
}
|
||||
|
||||
func testApplyLocalProfileUpdateSyncsNicknameAndAvatar() {
|
||||
AppStore.shared.userName = "全局昵称"
|
||||
AppStore.shared.avatar = "https://cdn.example.com/new.jpg"
|
||||
|
||||
Reference in New Issue
Block a user