| 41 | } as unknown as LinearAdapter); |
| 42 | |
| 43 | function createCommentRaw( |
| 44 | overrides: Partial<LinearCommentRawMessage> = {} |
| 45 | ): LinearCommentRawMessage { |
| 46 | return { |
| 47 | kind: 'comment', |
| 48 | organizationId: 'org-abc', |
| 49 | comment: { |
| 50 | id: 'cmt-1', |
| 51 | body: 'Hello Kilo', |
| 52 | createdAt: '2026-05-05T07:00:00.000Z', |
| 53 | updatedAt: '2026-05-05T07:00:00.000Z', |
| 54 | issueId: 'iss-1', |
| 55 | parentId: undefined, |
| 56 | url: 'https://linear.app/kilo/issue/KILO-1#comment-cmt-1', |
| 57 | user: { |
| 58 | id: 'usr-1', |
| 59 | type: 'user', |
| 60 | displayName: 'Remon', |
| 61 | fullName: 'Remon Doe', |
| 62 | email: undefined, |
| 63 | avatarUrl: undefined, |
| 64 | }, |
| 65 | }, |
| 66 | ...overrides, |
| 67 | }; |
| 68 | } |
| 69 | |
| 70 | function createMessage(raw: unknown, overrides: Partial<Message> = {}): Message { |
| 71 | const id = overrides.id ?? 'cmt-1'; |