feat: publish member notices and balance-aware order settlement
Deploy olons-admin production / deploy (push) Successful in 8m50s
Deploy olons-admin production / deploy (push) Successful in 8m50s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package sys
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -35,3 +36,12 @@ func TestCanAdminMatchOrder(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestBalanceShortageMessageShowsExactDifference(t *testing.T) {
|
||||
message := balanceShortageMessage(30000, 50000)
|
||||
for _, expected := range []string{"余额不足", "¥300.00", "¥500.00", "还差 ¥200.00", "充值审核通过"} {
|
||||
if !strings.Contains(message, expected) {
|
||||
t.Fatalf("balanceShortageMessage() = %q, missing %q", message, expected)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user