From 4f48f1768ec9b1a193883641c9c720140b0c3f02 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 d0a0c43..a842857 100644 --- a/test/transaction/test_cryptoconditions.js +++ b/test/transaction/test_cryptoconditions.js @@ -92,7 +92,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) })