Skip to content

Commit 6498810

Browse files
committed
test(web): accept the painter's optional callback in the mock
1 parent ea6493c commit 6498810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/browser/ServerBrowserSurface.browser.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const mocks = vi.hoisted(() => ({
1919
vi.mock(import("@t3tools/client-runtime/preview/server-browser-stream"), async (original) => ({
2020
...(await original()),
2121
createPreviewFramePainter: (_canvas, onPainted) => {
22-
mocks.painted = onPainted;
22+
mocks.painted = onPainted ?? null;
2323
return { paint: () => undefined, stop: () => undefined };
2424
},
2525
createPreviewStreamClient: (_options, events) => {

0 commit comments

Comments
 (0)