diff --git a/test/transaction/test_cryptoconditions.js b/test/transaction/test_cryptoconditions.js index c6bab61..d0a0c43 100644 --- a/test/transaction/test_cryptoconditions.js +++ b/test/transaction/test_cryptoconditions.js @@ -83,3 +83,16 @@ test('CryptoConditions JSON load', t => { }) t.truthy(cond.subconditions.length === 2) }) + + +test('CryptoConditions JSON load', t => { + const cond = Transaction.ccJsonLoad({ + type: 'threshold-sha-256', + threshold: 1, + subconditions: [{ + type: 'ed25519-sha-256', + public_key: 'a' + }], + }) + t.truthy(cond.subconditions.length === 1) +})