aboutsummaryrefslogtreecommitdiff
path: root/src/types-test.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-06-01 18:46:07 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-06-01 18:46:07 +0200
commit29b107f93763420c5bc0cbde38c68e40e705ff38 (patch)
treeaf659996507b043d1c21c61c56d639f926402033 /src/types-test.ts
parent26467674ba430707ffcdeb19b456dd2e325450bc (diff)
downloadwallet-core-29b107f93763420c5bc0cbde38c68e40e705ff38.tar.xz
fix terminology, better types
Diffstat (limited to 'src/types-test.ts')
-rw-r--r--src/types-test.ts6
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;