Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 8a3acaf

Browse files
committed
chore: snaphots
1 parent 300f63e commit 8a3acaf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should create default target for default children 1`] = `
4+
<div>
5+
<!--teleport start-->
6+
<!--teleport end-->
7+
</div>
8+
<div id="chakra__portal__1" style="width: 0px; height: 0px; overflow: hidden;">
9+
<div>Portal content</div>
10+
</div>
11+
`;
12+
13+
exports[`should not render anything if no children exist 1`] = `
14+
<DocumentFragment>
15+
<!--teleport start-->
16+
<!--teleport end-->
17+
</DocumentFragment>
18+
`;
19+
20+
exports[`should render children to provided portal target 1`] = `
21+
<div style="display: inline-block; position: absolute; bottom: 50px; right: 50px;" id="new-target">
22+
<div>Portal content</div>
23+
</div>
24+
<div>
25+
<!--teleport start-->
26+
<!--teleport end-->
27+
</div>
28+
`;

0 commit comments

Comments
 (0)