Skip to content

Commit b1c4f4d

Browse files
committed
Add a test for useSSRSafeId
1 parent 85e1f98 commit b1c4f4d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import {testSSR} from '@react-spectrum/test-utils';
2+
3+
describe('useSSRSafeId', function () {
4+
it('should render without errors', async function () {
5+
await testSSR(__filename, `
6+
import {useSSRSafeId} from '../';
7+
const Test = () => <div id={useSSRSafeId()} />;
8+
<Test />
9+
`);
10+
});
11+
});

0 commit comments

Comments
 (0)