Skip to content

Commit b82c06c

Browse files
authored
Merge pull request #23 from codemascot/f/13/refunds
Order notes test data moved to core_test.clj
2 parents 7f8c56e + 87c8e8d commit b82c06c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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+
:note_to_create {:note "Test Order Note"}
5051
:refund_to_create {:amount "5"}
5152
:ckr "ck_86e637eef49ca8f2c864ad7b84dc17b0a7b78750"
5253
:csr "cs_0890a046f5b9a30825970a65d8ab8e9c7fa0deb6"

test/wc_api_clj/v3/order_notes_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
:exception false
2626
:order (:id order)
2727
:insecure true
28-
:body (json/write-str {:note "a order note"})}
28+
:body (json/write-str (:note_to_create credentials))}
2929
create-order-note)]
3030
(is (< 0 (:id note)))
3131
(is (< 0 (-> {:url (:siteurl credentials)

0 commit comments

Comments
 (0)