1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-12-28 15:47:50 +01:00

add has subcondition to ccJsonLoad test

This commit is contained in:
Scott Sadler 2017-07-05 15:39:47 +02:00 committed by Tim Daubenschütz
parent 51585b1b05
commit d6e33b807a

View File

@ -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)
})