diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-06-01 18:46:07 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-06-01 18:46:07 +0200 |
commit | 29b107f93763420c5bc0cbde38c68e40e705ff38 (patch) | |
tree | af659996507b043d1c21c61c56d639f926402033 /src/types-test.ts | |
parent | 26467674ba430707ffcdeb19b456dd2e325450bc (diff) | |
download | wallet-core-29b107f93763420c5bc0cbde38c68e40e705ff38.tar.xz |
fix terminology, better types
Diffstat (limited to 'src/types-test.ts')
-rw-r--r-- | src/types-test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types-test.ts b/src/types-test.ts index a84bdaec8..3657d6d26 100644 --- a/src/types-test.ts +++ b/src/types-test.ts @@ -54,7 +54,7 @@ test("amount subtraction (saturation)", (t) => { }); -test("contract validation", (t) => { +test("contract terms validation", (t) => { const c = { H_wire: "123", amount: amt(1, 2, "EUR"), @@ -73,13 +73,13 @@ test("contract validation", (t) => { wire_method: "test", }; - types.Contract.checked(c); + types.ContractTerms.checked(c); const c1 = JSON.parse(JSON.stringify(c)); c1.exchanges = []; try { - types.Contract.checked(c1); + types.ContractTerms.checked(c1); } catch (e) { t.pass(); return; |