mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-30 17:15:49 +00:00
Add support for regularKey in prepareSettings
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user