account tests.

This commit is contained in:
2023-03-24 15:34:43 -07:00
parent bfa04ef83f
commit eb7394b42b
4 changed files with 31 additions and 29 deletions

View File

@@ -146,11 +146,12 @@
(deftest get-graphql
(testing "should retrieve a single account"
(d/transact conn [{:account/numeric-code 1
:account/default-allowance :allowance/allowed
:account/type :account-type/asset
:account/location "A"
:account/name "Test"}])
(dc/transact conn {:tx-data [{:account/numeric-code 1
:account/default-allowance :allowance/allowed
:account/type :account-type/asset
:account/location "A"
:account/name "Test"}]})
(is (= {:name "Test",
:invoice_allowance nil,
:numeric_code 1,