mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-12-27 23:27:50 +01:00
add additional test for ccJsonLoad
This commit is contained in:
parent
fb7dd5580a
commit
4a349013b2
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user