mirror of
https://github.com/Permissionless-Software-Foundation/psf-bch-api.git
synced 2026-09-21 16:52:00 -07:00
fixing broken tests
This commit is contained in:
@@ -24,7 +24,7 @@ describe('#fulcrum-use-cases.js', () => {
|
||||
}
|
||||
|
||||
// Create a mock BCHJS instance with stubbed sortAllTxs method
|
||||
const mockBchjs = new BCHJS()
|
||||
const mockBchjs = new BCHJS({ restURL: 'http://localhost:5942/v6/' })
|
||||
if (!mockBchjs.Electrumx) {
|
||||
mockBchjs.Electrumx = {}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('#slp-use-cases.js', () => {
|
||||
}
|
||||
|
||||
// Create mock BCHJS
|
||||
mockBchjs = new BCHJS()
|
||||
mockBchjs = new BCHJS({ restURL: 'http://localhost:5942/v6/' })
|
||||
mockBchjs.Electrumx = {
|
||||
txData: sandbox.stub().resolves({
|
||||
details: {
|
||||
|
||||
Reference in New Issue
Block a user