event.test: tamper with things in a more evil way

This commit is contained in:
Alex Gleason 2023-09-03 12:12:42 -05:00
parent d88761907a
commit 41265a19f5
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ describe('Event', () => {
)
// tamper with the signature
event.sig = event.sig.replace(/0/g, '1')
event.sig = event.sig.replace(/^.{3}/g, '666')
const isValid = verifySignature(event)
@ -294,7 +294,7 @@ describe('Event', () => {
)
// tamper with the id
event.id = event.id.replace(/0/g, '1')
event.id = event.id.replace(/^.{3}/g, '666')
const isValid = verifySignature(event)