fix(minimal-slp-wallet): Updating to v7.1.4

This commit is contained in:
Chris Troutner
2026-02-02 18:54:18 -07:00
parent 2de61458d3
commit 764fe928d2
4 changed files with 16 additions and 7 deletions
+4 -3
View File
@@ -14,13 +14,14 @@ describe('#adapters', () => {
let uut, sandbox
beforeEach(() => {
uut = new Adapters()
sandbox = sinon.createSandbox()
uut = new Adapters()
})
afterEach(() => {
sandbox.restore()
if (sandbox) {
sandbox.restore()
}
})
describe('#start', () => {
+10 -2
View File
@@ -10,15 +10,23 @@ describe('#config', () => {
before(() => {
// Backup the current environment setting.
currentEnv = process.env.SVC_ENV
// Clear SVC_ENV for the first test to ensure default behavior
delete process.env.SVC_ENV
})
after(() => {
// Restore the environment setting before starting these tests.
process.env.SVC_ENV = currentEnv
if (currentEnv) {
process.env.SVC_ENV = currentEnv
} else {
delete process.env.SVC_ENV
}
})
it('Should return development environment config by default', async () => {
const importedConfig = await import('../../../config/index.js')
// Ensure SVC_ENV is not set for this test
delete process.env.SVC_ENV
const importedConfig = await import('../../../config/index.js?foo=bar0')
const config = importedConfig.default
// console.log('config: ', config)
+1 -1
View File
@@ -17,7 +17,7 @@ class MockBchWallet {
this.walletInfoPromise = true;
this.walletInfo = mockWallet;
this.initialize = async () => {}
this.bchjs = new BCHJS();
this.bchjs = new BCHJS({ restURL: 'https://free-bch.fullstack.cash/' });
this.burnTokens = async () => {
return { success: true, txid: 'txid' };
};