Skip to content

Commit 0123e40

Browse files
committed
Refund testing data moved to core test file
1 parent 5c30ba0 commit 0123e40

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/wc_api_clj/core_test.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
:shipping_lines [{:method_id "flat_rate"
4848
:method_title "Flat Rate"
4949
:total "10.00"}]}
50+
:refund_to_create {:amount "5"}
5051
:ckr "ck_86e637eef49ca8f2c864ad7b84dc17b0a7b78750"
5152
:csr "cs_0890a046f5b9a30825970a65d8ab8e9c7fa0deb6"
5253
:ckw "ck_469b67ce2e12bd1a1b290abf4b1c108e61b4f71c"

test/wc_api_clj/v3/order_refunds_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
:order (:id order)
2727
:api_refund false
2828
:insecure true
29-
:body (json/write-str {:amount "5"})}
30-
create-order-refund)]
29+
:body (json/write-str {:refund_to_create credentials})}
30+
create-order-refund)]
3131
(is (< 0 (:id refund)))
3232
(is (< 0 (-> {:url (:siteurl credentials)
3333
:consumer_key (:ckr credentials)

0 commit comments

Comments
 (0)