Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/broadcasts/broadcasts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@
created_at: '2024-12-01T19:32:22.980Z',
scheduled_at: null,
sent_at: null,
html: '<h1>Hello world</h1>',
text: 'Hello world',
};

fetchMock.mockOnce(JSON.stringify(response), {
Expand All @@ -434,7 +436,7 @@

const resend = new Resend('re_zKa4RCko_Lhm9ost2YjNCctnPjbLw8Nop');

await expect(

Check failure on line 439 in src/broadcasts/broadcasts.spec.ts

View workflow job for this annotation

GitHub Actions / tests

src/broadcasts/broadcasts.spec.ts > Broadcasts > get > get broadcast

Error: Snapshot `Broadcasts > get > get broadcast 1` mismatched - Expected + Received { "data": { "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf", "created_at": "2024-12-01T19:32:22.980Z", "from": "Acme <[email protected]>", + "html": "<h1>Hello world</h1>", "id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b", "name": "Announcements", "object": "broadcast", "preview_text": "Check out our latest announcements", "reply_to": null, "scheduled_at": null, "sent_at": null, "status": "draft", "subject": "hello world", + "text": "Hello world", }, "error": null, } ❯ src/broadcasts/broadcasts.spec.ts:439:7
resend.broadcasts.get('559ac32e-9ef5-46fb-82a1-b76b840c0f7b'),
).resolves.toMatchInlineSnapshot(`
{
Expand Down
2 changes: 2 additions & 0 deletions src/broadcasts/interfaces/broadcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ export interface Broadcast {
created_at: string;
scheduled_at: string | null;
sent_at: string | null;
html: string | null;
text: string | null;
}
Loading