新增撞车订单人工退款
This commit is contained in:
@@ -23,3 +23,25 @@ func TestDailyDateKey(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestPayBizTypesIncludeMohongPay(t *testing.T) {
|
||||
values := map[string]bool{}
|
||||
for _, item := range payBizTypes() {
|
||||
values[item] = true
|
||||
}
|
||||
for _, want := range []string{"order_pay", "mohong_pay"} {
|
||||
if !values[want] {
|
||||
t.Fatalf("payBizTypes missing %s", want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestRefundBizTypesIncludeMohongRefund(t *testing.T) {
|
||||
values := map[string]bool{}
|
||||
for _, item := range refundBizTypes() {
|
||||
values[item] = true
|
||||
}
|
||||
if !values["mohong_refund"] {
|
||||
t.Fatal("refundBizTypes missing mohong_refund")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user