Skip to content

Commit 21cd17c

Browse files
authored
test: fill in a missing ItMulti alias test for IterateMulti (#52)
1 parent 43112ec commit 21cd17c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/tests/IterateMulti.spec.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { cleanup as cleanupMountedReactTrees, act, render } from '@testing-libra
44
import {
55
iterateFormatted,
66
IterateMulti,
7+
ItMulti,
78
type IterateMultiProps,
89
type IterationResultSet,
910
} from '../../src/index.js';
@@ -16,6 +17,10 @@ afterEach(() => {
1617
});
1718

1819
describe('`IterateMulti` hook', () => {
20+
it(gray('Importable also as `<ItMulti>`'), () => {
21+
expect(IterateMulti).toStrictEqual(ItMulti);
22+
});
23+
1924
it(gray('When given an empty array, renders with an empty array'), async () => {
2025
const renderFn = vi.fn() as Mock<IterateMultiRenderFunc<[]>>;
2126

0 commit comments

Comments
 (0)