Skip to content

Commit

Permalink
Refund testing data moved to core test file
Browse files Browse the repository at this point in the history
  • Loading branch information
khanrn committed Jan 16, 2021
1 parent 5c30ba0 commit 0123e40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/wc_api_clj/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
:shipping_lines [{:method_id "flat_rate"
:method_title "Flat Rate"
:total "10.00"}]}
:refund_to_create {:amount "5"}
:ckr "ck_86e637eef49ca8f2c864ad7b84dc17b0a7b78750"
:csr "cs_0890a046f5b9a30825970a65d8ab8e9c7fa0deb6"
:ckw "ck_469b67ce2e12bd1a1b290abf4b1c108e61b4f71c"
Expand Down
4 changes: 2 additions & 2 deletions test/wc_api_clj/v3/order_refunds_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
:order (:id order)
:api_refund false
:insecure true
:body (json/write-str {:amount "5"})}
create-order-refund)]
:body (json/write-str {:refund_to_create credentials})}
create-order-refund)]
(is (< 0 (:id refund)))
(is (< 0 (-> {:url (:siteurl credentials)
:consumer_key (:ckr credentials)
Expand Down

0 comments on commit 0123e40

Please sign in to comment.