event.test: tamper with things in a more evil way
This commit is contained in:
parent
d88761907a
commit
41265a19f5
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue