Skip to content

Commit 437eb7e

Browse files
OttoAllmendingerlcovar
authored andcommitted
feat(abstract-utxo): extend Tr2Of3 test for findDescriptors
The previous test was incomplete as we used Tr2Of3 only for the external output Issue: BTC-1786
1 parent 7ddc69b commit 437eb7e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/abstract-utxo/test/core/descriptor/psbt/findDescriptors.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { findDescriptorForInput, findDescriptorForOutput } from '../../../../src
55

66
import { mockPsbt } from './mock.utils';
77

8-
function describeWithTemplates(tA: DescriptorTemplate, tB: DescriptorTemplate) {
9-
describe(`parsePsbt [${tA},${tB}]`, function () {
10-
const descriptorA = getDescriptor(tA, getDefaultXPubs('a'));
11-
const descriptorB = getDescriptor(tB, getDefaultXPubs('b'));
8+
function describeWithTemplates(templateSelf: DescriptorTemplate, templateOther: DescriptorTemplate) {
9+
describe(`parsePsbt [${templateSelf},${templateOther}]`, function () {
10+
const descriptorA = getDescriptor(templateSelf, getDefaultXPubs('a'));
11+
const descriptorB = getDescriptor(templateOther, getDefaultXPubs('b'));
1212
const descriptorMap = new Map([
1313
['a', descriptorA],
1414
['b', descriptorB],
@@ -41,3 +41,4 @@ function describeWithTemplates(tA: DescriptorTemplate, tB: DescriptorTemplate) {
4141

4242
describeWithTemplates('Wsh2Of3', 'Wsh2Of3');
4343
describeWithTemplates('Wsh2Of3', 'Tr2Of3-NoKeyPath');
44+
describeWithTemplates('Tr2Of3-NoKeyPath', 'Tr2Of3-NoKeyPath');

0 commit comments

Comments
 (0)