TST: minor fix

This commit is contained in:
Overtorment 2020-05-05 12:10:20 +01:00
parent 4b55d7b9f2
commit 707004a102

View File

@ -3,6 +3,10 @@ import { HDLegacyBreadwalletWallet } from '../../class';
const assert = require('assert'); const assert = require('assert');
it('Legacy HD Breadwallet works', async () => { it('Legacy HD Breadwallet works', async () => {
if (!process.env.HD_MNEMONIC_BREAD) {
console.error('process.env.HD_MNEMONIC_BREAD not set, skipped');
return;
}
let hdBread = new HDLegacyBreadwalletWallet(); let hdBread = new HDLegacyBreadwalletWallet();
hdBread.setSecret(process.env.HD_MNEMONIC_BREAD); hdBread.setSecret(process.env.HD_MNEMONIC_BREAD);