fix: 修正账号姓名展示与资料缓存
This commit is contained in:
@ -55,11 +55,12 @@ final class PaymentModelsTests: XCTestCase {
|
||||
XCTAssertFalse(PayPageBrandingPolicy.isNalati(scenicId: 0))
|
||||
}
|
||||
|
||||
func testPaymentAccountDisplayFormatterUsesCurrentPhotographerAndAllUniqueStores() {
|
||||
func testPaymentAccountDisplayFormatterUsesRealNameAndAllUniqueStores() {
|
||||
XCTAssertEqual(
|
||||
PaymentAccountDisplayFormatter.photographerName(userName: " 当前摄影师 ", realName: "实名"),
|
||||
"当前摄影师"
|
||||
PaymentAccountDisplayFormatter.photographerName(realName: " 摄影师真实姓名 "),
|
||||
"摄影师真实姓名"
|
||||
)
|
||||
XCTAssertEqual(PaymentAccountDisplayFormatter.photographerName(realName: " "), "-")
|
||||
XCTAssertEqual(
|
||||
PaymentAccountDisplayFormatter.storeNames(["一号店", " 二号店 ", "一号店", ""]),
|
||||
"一号店、二号店"
|
||||
|
||||
Reference in New Issue
Block a user