Add support for regularKey in prepareSettings

This commit is contained in:
Chris Clark
2015-07-13 16:46:57 -07:00
parent 5889037a71
commit 286a684963
3 changed files with 23 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ const orderCancellationResponse =
require('./fixtures/ordercancellation-response');
const settingsSpecification = require('./fixtures/settings-specification');
const settingsResponse = require('./fixtures/settings-response');
const regularKeyResponse = require('./fixtures/regular-key-response');
const signInput = require('./fixtures/sign-input');
const signOutput = require('./fixtures/sign-output');
const MockPRNG = require('./mock-prng');
@@ -91,6 +92,12 @@ describe('RippleAPI', function() {
instructions, _.partial(checkResult, settingsResponse, done));
});
it('prepareSettings - regularKey', function(done) {
const regularKey = {regularKey: 'rAR8rR8sUkBoCZFawhkWzY4Y5YoyuznwD'};
this.api.prepareSettings(address, regularKey,
instructions, _.partial(checkResult, regularKeyResponse, done));
});
it('sign', function() {
const secret = 'shsWGZcmZz6YsWWmcnpfr6fLTdtFV';
withDeterministicPRNG(() => {