Fixing merge conflicts

This commit is contained in:
Chris Troutner
2026-02-03 15:32:50 -07:00
11 changed files with 5584 additions and 6576 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', () => {
+11 -2
View File
@@ -10,15 +10,24 @@ describe('#config', () => {
before(() => {
// Backup the current environment setting.
currentEnv = process.env.CONSUMER_ENV
// Clear CONSUMER_ENV for the first test to ensure default behavior
delete process.env.CONSUMER_ENV
})
after(() => {
// Restore the environment setting before starting these tests.
process.env.CONSUMER_ENV = currentEnv
if (currentEnv) {
process.env.CONSUMER_ENV = currentEnv
} else {
delete process.env.CONSUMER_ENV
}
})
it('Should return development environment config by default', async () => {
const importedConfig = await import('../../../config/index.js')
// Ensure CONSUMER_ENV is not set for this test
delete process.env.CONSUMER_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' };
};