test: fix MaxSizedBox tests

This commit is contained in:
mkorwel
2026-04-17 19:59:15 +00:00
parent be8c9fd1e5
commit 3d5589c31d
@@ -195,15 +195,17 @@ describe('<MaxSizedBox />', () => {
});
it('renders an empty box for empty children', async () => {
const { lastFrame, waitUntilReady, unmount } = await render(
const { lastFrame, unmount } = await render(
<OverflowProvider>
<MaxSizedBox maxWidth={80} maxHeight={10}></MaxSizedBox>
</OverflowProvider>,
undefined,
undefined,
true,
);
await act(async () => {
vi.runAllTimers();
});
await waitUntilReady();
expect(lastFrame({ allowEmpty: true })?.trim()).equals('');
unmount();
});