Support removing RegularKey

This commit is contained in:
Chris Clark
2015-11-16 10:24:02 -08:00
parent c7eb625ac0
commit ed8f1e4111
6 changed files with 29 additions and 7 deletions

View File

@@ -119,6 +119,13 @@ describe('RippleAPI', function() {
_.partial(checkResult, responses.prepareSettings.regularKey, 'prepare'));
});
it('prepareSettings - remove regularKey', function() {
const regularKey = {regularKey: null};
return this.api.prepareSettings(address, regularKey, instructions).then(
_.partial(checkResult, responses.prepareSettings.removeRegularKey,
'prepare'));
});
it('prepareSettings - flag set', function() {
const settings = {requireDestinationTag: true};
return this.api.prepareSettings(address, settings, instructions).then(