Skip to content

Commit 677caa4

Browse files
committed
test: unit test bug fix
part of f631309
1 parent f631309 commit 677caa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__tests__/useMessageStream.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { test } from "./test_extended";
99
const sessId = "sess123";
1010
test("should handle persisted events and streamed events", async () => {
1111
const { result } = renderHook(() =>
12-
useMessageStream(sessId, { events: useMemo(() => STORED_EVENTS, []) }),
12+
useMessageStream({ events: useMemo(() => STORED_EVENTS, []) }),
1313
);
1414

1515
await act(async () => {
@@ -64,7 +64,7 @@ test("should handle persisted events and streamed events", async () => {
6464

6565
test("should handle empty events", async () => {
6666
const { result } = renderHook(() =>
67-
useMessageStream(sessId, { events: useMemo(() => [], []) }),
67+
useMessageStream({ events: useMemo(() => [], []) }),
6868
);
6969

7070
await act(async () => {

0 commit comments

Comments
 (0)