mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Add missing condition or fulfillment test
This commit is contained in:
@@ -302,6 +302,20 @@ describe('RippleAPI', function() {
|
||||
'prepare'));
|
||||
});
|
||||
|
||||
it('prepareEscrowExecution - no condition', function() {
|
||||
assert.throws(() => {
|
||||
this.api.prepareEscrowExecution(address,
|
||||
requests.prepareEscrowExecution.noCondition, instructions);
|
||||
}, /"condition" and "fulfillment" fields on EscrowFinish must only be specified together./);
|
||||
});
|
||||
|
||||
it('prepareEscrowExecution - no fulfillment', function() {
|
||||
assert.throws(() => {
|
||||
this.api.prepareEscrowExecution(address,
|
||||
requests.prepareEscrowExecution.noFulfillment, instructions);
|
||||
}, /"condition" and "fulfillment" fields on EscrowFinish must only be specified together./);
|
||||
});
|
||||
|
||||
it('prepareEscrowCancellation', function() {
|
||||
return this.api.prepareEscrowCancellation(
|
||||
address,
|
||||
|
||||
Reference in New Issue
Block a user