From d6e33b807a1e70cc3e95a6c904a2b03d598a5024 Mon Sep 17 00:00:00 2001 From: Scott Sadler Date: Wed, 5 Jul 2017 15:39:47 +0200 Subject: [PATCH] add has subcondition to ccJsonLoad test --- test/transaction/test_cryptoconditions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/transaction/test_cryptoconditions.js b/test/transaction/test_cryptoconditions.js index d95e38a..3e4a263 100644 --- a/test/transaction/test_cryptoconditions.js +++ b/test/transaction/test_cryptoconditions.js @@ -76,7 +76,10 @@ test('CryptoConditions JSON load', t => { subconditions: [{ type: 'ed25519-sha-256', public_key: 'a' + }, + { + hash: 'a' }], }) - t.truthy(cond.subconditions.length === 1) + t.truthy(cond.subconditions.length === 2) })