@@ -1185,7 +1185,11 @@ describe("Encryption Escrow", () => {
11851185
11861186 // Signing should fail (key not in memory)
11871187 try {
1188- await onSignTransaction ( requestId , serializedTransaction , "wallet-addr-1" ) ;
1188+ await onSignTransaction (
1189+ requestId ,
1190+ serializedTransaction ,
1191+ "wallet-addr-1"
1192+ ) ;
11891193 } catch ( e ) {
11901194 expect ( e . toString ( ) ) . toContain ( "key bytes not found" ) ;
11911195 }
@@ -1219,9 +1223,7 @@ describe("Encryption Escrow", () => {
12191223 callCount ++ ;
12201224 if ( callCount === 1 ) {
12211225 // First call: decrypting the escrow key bundle -> returns JWK bytes
1222- return Promise . resolve (
1223- mockEscrowKeyBytes
1224- ) ;
1226+ return Promise . resolve ( mockEscrowKeyBytes ) ;
12251227 }
12261228 // Subsequent calls: decrypting wallet bundles -> returns key bytes
12271229 return Promise . resolve ( new Uint8Array ( 64 ) . fill ( 9 ) ) ;
@@ -1253,9 +1255,7 @@ describe("Encryption Escrow", () => {
12531255 } ) ;
12541256
12551257 it ( "handles empty localStorage gracefully" , async ( ) => {
1256- const HpkeDecryptMock = jest . fn ( ) . mockResolvedValue (
1257- mockEscrowKeyBytes
1258- ) ;
1258+ const HpkeDecryptMock = jest . fn ( ) . mockResolvedValue ( mockEscrowKeyBytes ) ;
12591259
12601260 await onInjectDecryptionKeyBundle (
12611261 requestId ,
@@ -1299,9 +1299,7 @@ describe("Encryption Escrow", () => {
12991299 callCount ++ ;
13001300 if ( callCount === 1 ) {
13011301 // First call: escrow key
1302- return Promise . resolve (
1303- mockEscrowKeyBytes
1304- ) ;
1302+ return Promise . resolve ( mockEscrowKeyBytes ) ;
13051303 }
13061304 // Fail for the second wallet bundle (callCount 3 = wallet2-bad)
13071305 if ( callCount === 3 ) {
@@ -1579,9 +1577,7 @@ describe("Encryption Escrow", () => {
15791577 const HpkeDecryptMock = jest . fn ( ) . mockImplementation ( ( ) => {
15801578 callCount ++ ;
15811579 if ( callCount === 1 ) {
1582- return Promise . resolve (
1583- mockEscrowKeyBytes
1584- ) ;
1580+ return Promise . resolve ( mockEscrowKeyBytes ) ;
15851581 }
15861582 return Promise . resolve ( new Uint8Array ( 64 ) . fill ( 9 ) ) ;
15871583 } ) ;
0 commit comments