Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Oct 6, 2023
1 parent e2b159f commit 88b1915
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
1 change: 1 addition & 0 deletions example/tests/eclair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ describe('Eclair', function () {
highPriority: 30,
normal: 20,
background: 10,
mempoolMinimum: 5,
});
},
});
Expand Down
7 changes: 6 additions & 1 deletion example/tests/unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ describe('Unit', function () {
getAddress: async () => 'bcrt1qtk89me2ae95dmlp3yfl4q9ynpux8mxjus4s872',
getScriptPubKeyHistory: async () => [],
getFees: () => {
return Promise.resolve({ highPriority: 10, normal: 5, background: 1 });
return Promise.resolve({
highPriority: 10,
normal: 5,
background: 2,
mempoolMinimum: 1,
});
},
getTransactionData: async () => ({
header: '',
Expand Down
7 changes: 4 additions & 3 deletions example/tests/utils/test-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ export default class TestProfile {
getScriptPubKeyHistory: this.getScriptPubKeyHistory,
getFees: () =>
Promise.resolve({
highPriority: 3,
normal: 2,
background: 1,
highPriority: 4,
normal: 3,
background: 2,
mempoolMinimum: 1,
}),
getTransactionData: this.getTransactionData,
getTransactionPosition: this.getTransactionPosition,
Expand Down
12 changes: 9 additions & 3 deletions example/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ export const customPeers = {
bitcoinTestnet: [],
bitcoinRegtest: [
{
host: '192.168.0.100',
ssl: 50001,
tcp: 50001,
host: 'localhost',
ssl: 60001,
tcp: 60001,
protocol: 'tcp',
},
// {
// host: '192.168.0.100',
// ssl: 50001,
// tcp: 50001,
// protocol: 'tcp',
// },
// {
// host: 'localhost',
// ssl: 60001,
// tcp: 60001,
Expand Down

0 comments on commit 88b1915

Please sign in to comment.