({ kind, pubkey, createdAt })
| 42 | } |
| 43 | |
| 44 | function statusEvent({ kind, pubkey, createdAt }) { |
| 45 | return { |
| 46 | id: `status-${pubkey.slice(0, 8)}-${createdAt}`, |
| 47 | kind, |
| 48 | pubkey, |
| 49 | created_at: createdAt, |
| 50 | content: "", |
| 51 | tags: [ |
| 52 | ["e", "f".repeat(64), "", "root"], |
| 53 | ["a", REPO_ADDRESS], |
| 54 | ], |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | test("accepts updates signed by the PR author", () => { |
| 59 | const update = updateEvent({ |
no outgoing calls
no test coverage detected