Browse Source

TST

localNotifications
Overtorment 6 years ago
parent
commit
ba96c8dec1
  1. 6
      HDWallet.test.js

6
HDWallet.test.js

@ -201,9 +201,13 @@ it('Legacy HD (BIP44) can generate addressess based on xpub', async function() {
});
it('HD breadwallet works', async function() {
if (!process.env.HD_MNEMONIC_BREAD) {
console.error('process.env.HD_MNEMONIC_BREAD not set, skipped');
return;
}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 300 * 1000;
let hdBread = new HDLegacyBreadwalletWallet();
hdBread.setSecret('high relief amount witness try remember adult destroy puppy fox giant peace');
hdBread.setSecret(process.env.HD_MNEMONIC_BREAD);
assert.equal(hdBread.validateMnemonic(), true);
assert.equal(hdBread._getExternalAddressByIndex(0), '1ARGkNMdsBE36fJhddSwf8PqBXG3s4d2KU');

Loading…
Cancel
Save