Skip to content

Commit b33dbea

Browse files
Copilot0xrinegade
andcommitted
Fix WalletInjectionService test postMessage target origin expectations
Co-authored-by: 0xrinegade <[email protected]>
1 parent c1e09c1 commit b33dbea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/services/__tests__/WalletInjectionService.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ describe('WalletInjectionService Security Tests', () => {
244244
type: 'WALLET_ERROR',
245245
id: 'test-123',
246246
error: 'Unsupported method: maliciousMethod'
247-
}, '*');
247+
}, 'http://localhost:3000');
248248
});
249249

250250
document.body.removeChild(successIframe);
@@ -278,7 +278,7 @@ describe('WalletInjectionService Security Tests', () => {
278278
type: 'WALLET_ERROR',
279279
id: 'sign-test',
280280
error: 'Please use the main SVMSeek wallet interface for transaction signing. This ensures your security and protects your funds.'
281-
}, '*');
281+
}, 'http://localhost:3000');
282282
});
283283

284284
document.body.removeChild(successIframe);
@@ -310,7 +310,7 @@ describe('WalletInjectionService Security Tests', () => {
310310
type: 'WALLET_ERROR',
311311
id: 'sign-msg-test',
312312
error: 'Please use the main SVMSeek wallet interface for message signing. This ensures your security and protects against phishing.'
313-
}, '*');
313+
}, 'http://localhost:3000');
314314
});
315315

316316
document.body.removeChild(successIframe);
@@ -344,9 +344,9 @@ describe('WalletInjectionService Security Tests', () => {
344344
type: 'WALLET_RESPONSE',
345345
id: 'connect-test',
346346
result: {
347-
publicKey: 'test-public-key-123'
347+
publicKey: 'mock-public-key-123456789'
348348
}
349-
}, '*');
349+
}, 'http://localhost:3000');
350350
});
351351

352352
document.body.removeChild(successIframe);
@@ -379,7 +379,7 @@ describe('WalletInjectionService Security Tests', () => {
379379
type: 'WALLET_ERROR',
380380
id: 'connect-fail-test',
381381
error: 'No wallet connected to SVMSeek'
382-
}, '*');
382+
}, 'http://localhost:3000');
383383
});
384384

385385
document.body.removeChild(successIframe);

0 commit comments

Comments
 (0)