Add missing condition or fulfillment test

This commit is contained in:
wilsonianb
2017-11-06 13:49:38 -06:00
parent 227ea82a29
commit 8ed5f764fa
4 changed files with 27 additions and 1 deletions

View File

@@ -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,