From fd59b8a83865d96402374859ce769c4ca026f1cc Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Wed, 27 May 2020 19:20:19 +0800 Subject: [PATCH] add test --- test/order_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/order_test.go b/test/order_test.go index ee070b8..86ee0a9 100644 --- a/test/order_test.go +++ b/test/order_test.go @@ -15,3 +15,11 @@ func TestUnifiedOrder(t *testing.T) { } fmt.Println(res) } + +func TestRefund(t *testing.T) { + res, err := pay_service.Refund("测试退款", "qfdyD0vJRHP2xJeoaerSWrGMXDacd5wo") + if err != nil { + t.Error(err) + } + fmt.Printf("%+v", res) +}