( kind: number, content: string, tags: string[][], pubkey = DEFAULT_MOCK_IDENTITY.pubkey, createdAt = Math.floor(Date.now() / 1000), id = crypto.randomUUID().replace(/-/g, ""), )
| 4308 | } |
| 4309 | |
| 4310 | function createMockEvent( |
| 4311 | kind: number, |
| 4312 | content: string, |
| 4313 | tags: string[][], |
| 4314 | pubkey = DEFAULT_MOCK_IDENTITY.pubkey, |
| 4315 | createdAt = Math.floor(Date.now() / 1000), |
| 4316 | id = crypto.randomUUID().replace(/-/g, ""), |
| 4317 | ): RelayEvent { |
| 4318 | return { |
| 4319 | id, |
| 4320 | pubkey, |
| 4321 | created_at: createdAt, |
| 4322 | kind, |
| 4323 | tags, |
| 4324 | content, |
| 4325 | sig: "mocksig".repeat(20).slice(0, 128), |
| 4326 | }; |
| 4327 | } |
| 4328 | |
| 4329 | async function signWithIdentity( |
| 4330 | identity: TestIdentity, |
no outgoing calls
no test coverage detected