mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-25 20:00:19 +01:00
add additional test for ccJsonLoad
This commit is contained in:
parent
b665752c8c
commit
51585b1b05
@ -67,3 +67,16 @@ test('Fulfillment correctly formed', t => {
|
|||||||
txCreate.outputs[0].condition.uri,
|
txCreate.outputs[0].condition.uri,
|
||||||
new Buffer(msg)))
|
new Buffer(msg)))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
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