File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1120,6 +1120,7 @@ describe(`Psbt`, () => {
11201120 assert . deepStrictEqual ( treeFromList , originalTree ) ;
11211121 } ) ;
11221122 } ) ;
1123+
11231124 it ( 'Throws if too many leaves on a given level' , ( ) => {
11241125 const list = Array . from ( { length : 5 } ) . map ( ( ) => ( {
11251126 depth : 2 ,
@@ -1130,6 +1131,7 @@ describe(`Psbt`, () => {
11301131 tapTreeFromList ( list ) ;
11311132 } , new RegExp ( 'No room left to insert tapleaf in tree' ) ) ;
11321133 } ) ;
1134+
11331135 it ( 'Throws if taptree depth is exceeded' , ( ) => {
11341136 let tree : Taptree = [
11351137 { output : Buffer . from ( [ ] ) } ,
@@ -1142,6 +1144,7 @@ describe(`Psbt`, () => {
11421144 tapTreeToList ( tree as Taptree ) ;
11431145 } , new RegExp ( 'Max taptree depth exceeded.' ) ) ;
11441146 } ) ;
1147+
11451148 it ( 'Throws if tapleaf depth is to high' , ( ) => {
11461149 const list = [
11471150 {
@@ -1154,6 +1157,7 @@ describe(`Psbt`, () => {
11541157 tapTreeFromList ( list ) ;
11551158 } , new RegExp ( 'Max taptree depth exceeded.' ) ) ;
11561159 } ) ;
1160+
11571161 it ( 'Throws if not a valid taptree structure' , ( ) => {
11581162 const tree = Array . from ( { length : 3 } ) . map ( ( ) => ( {
11591163 output : Buffer . from ( [ ] ) ,
You can’t perform that action at this time.
0 commit comments