mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2025-01-22 07:36:55 +01:00
add has subcondition to ccJsonLoad test
This commit is contained in:
parent
1a61cde58d
commit
19db948726
@ -76,7 +76,10 @@ test('CryptoConditions JSON load', t => {
|
|||||||
subconditions: [{
|
subconditions: [{
|
||||||
type: 'ed25519-sha-256',
|
type: 'ed25519-sha-256',
|
||||||
public_key: 'a'
|
public_key: 'a'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
hash: 'a'
|
||||||
}],
|
}],
|
||||||
})
|
})
|
||||||
t.truthy(cond.subconditions.length === 1)
|
t.truthy(cond.subconditions.length === 2)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user