@@ -82,8 +82,10 @@ describe("URI tests", () => {
8282 "http://vjdpwgybvubne5hda6v4c5iaeeevhge6jvo3w2cl6eocbwwvwxp7b7qd.onion" ;
8383
8484 const base58 = "bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX" ;
85- const bech32Upper = "BITCOIN:TB1Q6D3A2W975YNY0ASUVD9A67NER4NKS58FF0Q8G4" ;
86- const bech32Lower = "bitcoin:tb1q6d3a2w975yny0asuvd9a67ner4nks58ff0q8g4" ;
85+ const bech32Upper =
86+ "BITCOIN:TB1Q6D3A2W975YNY0ASUVD9A67NER4NKS58FF0Q8G4" ;
87+ const bech32Lower =
88+ "bitcoin:tb1q6d3a2w975yny0asuvd9a67ner4nks58ff0q8g4" ;
8789
8890 const addresses = [ base58 , bech32Upper , bech32Lower ] ;
8991 const pjs = [ https , onion ] ;
@@ -109,13 +111,14 @@ describe("Persistence tests", () => {
109111 ) ;
110112 const ohttpKeys = payjoin . OhttpKeys . decode (
111113 new Uint8Array ( [
112- 0x01 , 0x00 , 0x16 , 0x04 , 0xba , 0x48 , 0xc4 , 0x9c , 0x3d , 0x4a , 0x92 ,
113- 0xa3 , 0xad , 0x00 , 0xec , 0xc6 , 0x3a , 0x02 , 0x4d , 0xa1 , 0x0c , 0xed ,
114- 0x02 , 0x18 , 0x0c , 0x73 , 0xec , 0x12 , 0xd8 , 0xa7 , 0xad , 0x2c , 0xc9 ,
115- 0x1b , 0xb4 , 0x83 , 0x82 , 0x4f , 0xe2 , 0xbe , 0xe8 , 0xd2 , 0x8b , 0xfe ,
116- 0x2e , 0xb2 , 0xfc , 0x64 , 0x53 , 0xbc , 0x4d , 0x31 , 0xcd , 0x85 , 0x1e ,
117- 0x8a , 0x65 , 0x40 , 0xe8 , 0x6c , 0x53 , 0x82 , 0xaf , 0x58 , 0x8d , 0x37 ,
118- 0x09 , 0x57 , 0x00 , 0x04 , 0x00 , 0x01 , 0x00 , 0x03 ,
114+ 0x01 , 0x00 , 0x16 , 0x04 , 0xba , 0x48 , 0xc4 , 0x9c , 0x3d , 0x4a ,
115+ 0x92 , 0xa3 , 0xad , 0x00 , 0xec , 0xc6 , 0x3a , 0x02 , 0x4d , 0xa1 ,
116+ 0x0c , 0xed , 0x02 , 0x18 , 0x0c , 0x73 , 0xec , 0x12 , 0xd8 , 0xa7 ,
117+ 0xad , 0x2c , 0xc9 , 0x1b , 0xb4 , 0x83 , 0x82 , 0x4f , 0xe2 , 0xbe ,
118+ 0xe8 , 0xd2 , 0x8b , 0xfe , 0x2e , 0xb2 , 0xfc , 0x64 , 0x53 , 0xbc ,
119+ 0x4d , 0x31 , 0xcd , 0x85 , 0x1e , 0x8a , 0x65 , 0x40 , 0xe8 , 0x6c ,
120+ 0x53 , 0x82 , 0xaf , 0x58 , 0x8d , 0x37 , 0x09 , 0x57 , 0x00 , 0x04 ,
121+ 0x00 , 0x01 , 0x00 , 0x03 ,
119122 ] ) . buffer ,
120123 ) ;
121124
@@ -129,7 +132,11 @@ describe("Persistence tests", () => {
129132 const result = payjoin . replayReceiverEventLog ( persister ) ;
130133 const state = result . state ( ) ;
131134
132- assert . strictEqual ( state . tag , "Initialized" , "State should be Initialized" ) ;
135+ assert . strictEqual (
136+ state . tag ,
137+ "Initialized" ,
138+ "State should be Initialized" ,
139+ ) ;
133140 } ) ;
134141
135142 test ( "sender persistence" , ( ) => {
@@ -140,13 +147,14 @@ describe("Persistence tests", () => {
140147 ) ;
141148 const ohttpKeys = payjoin . OhttpKeys . decode (
142149 new Uint8Array ( [
143- 0x01 , 0x00 , 0x16 , 0x04 , 0xba , 0x48 , 0xc4 , 0x9c , 0x3d , 0x4a , 0x92 ,
144- 0xa3 , 0xad , 0x00 , 0xec , 0xc6 , 0x3a , 0x02 , 0x4d , 0xa1 , 0x0c , 0xed ,
145- 0x02 , 0x18 , 0x0c , 0x73 , 0xec , 0x12 , 0xd8 , 0xa7 , 0xad , 0x2c , 0xc9 ,
146- 0x1b , 0xb4 , 0x83 , 0x82 , 0x4f , 0xe2 , 0xbe , 0xe8 , 0xd2 , 0x8b , 0xfe ,
147- 0x2e , 0xb2 , 0xfc , 0x64 , 0x53 , 0xbc , 0x4d , 0x31 , 0xcd , 0x85 , 0x1e ,
148- 0x8a , 0x65 , 0x40 , 0xe8 , 0x6c , 0x53 , 0x82 , 0xaf , 0x58 , 0x8d , 0x37 ,
149- 0x09 , 0x57 , 0x00 , 0x04 , 0x00 , 0x01 , 0x00 , 0x03 ,
150+ 0x01 , 0x00 , 0x16 , 0x04 , 0xba , 0x48 , 0xc4 , 0x9c , 0x3d , 0x4a ,
151+ 0x92 , 0xa3 , 0xad , 0x00 , 0xec , 0xc6 , 0x3a , 0x02 , 0x4d , 0xa1 ,
152+ 0x0c , 0xed , 0x02 , 0x18 , 0x0c , 0x73 , 0xec , 0x12 , 0xd8 , 0xa7 ,
153+ 0xad , 0x2c , 0xc9 , 0x1b , 0xb4 , 0x83 , 0x82 , 0x4f , 0xe2 , 0xbe ,
154+ 0xe8 , 0xd2 , 0x8b , 0xfe , 0x2e , 0xb2 , 0xfc , 0x64 , 0x53 , 0xbc ,
155+ 0x4d , 0x31 , 0xcd , 0x85 , 0x1e , 0x8a , 0x65 , 0x40 , 0xe8 , 0x6c ,
156+ 0x53 , 0x82 , 0xaf , 0x58 , 0x8d , 0x37 , 0x09 , 0x57 , 0x00 , 0x04 ,
157+ 0x00 , 0x01 , 0x00 , 0x03 ,
150158 ] ) . buffer ,
151159 ) ;
152160
0 commit comments