Skip to content

Commit

Permalink
Fix options assertion in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atrakh committed Oct 25, 2024
1 parent 3561d23 commit ec1fa6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe("events", () => {
await t.finishAllScheduledFunctions(vi.runAllTimers);

expect(sendEvents).toHaveBeenCalledOnce();
expect(sendEvents).toBeCalledWith(events, "test-sdk-key", undefined);
expect(sendEvents).toBeCalledWith(events, "test-sdk-key", {});

await t.run(async (ctx) => {
const newEvents = await ctx.db.query("events").collect();
Expand Down Expand Up @@ -241,7 +241,7 @@ describe("events", () => {
i + 1,
events!.slice(i * EVENT_BATCH_SIZE, (i + 1) * EVENT_BATCH_SIZE),
"test-sdk-key",
undefined
{}
);
}

Expand Down

0 comments on commit ec1fa6a

Please sign in to comment.