Skip to content

Commit 205bda7

Browse files
committed
test(components): update test for Switch.
Update its snapshot. It using `gap` rather than `margin` to set elements' space. And remove useless `span` label if the label is undefined.
1 parent df99a53 commit 205bda7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/components/test/__snapshots__/index.js.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,7 @@ exports[`Switch renders 1`] = `
16491649
display: -ms-flexbox;
16501650
display: flex;
16511651
cursor: pointer;
1652+
gap: 8px;
16521653
}
16531654
16541655
.emotion-1 {
@@ -1675,7 +1676,6 @@ exports[`Switch renders 1`] = `
16751676
border-radius: 18px;
16761677
height: 22px;
16771678
width: 40px;
1678-
margin-right: 8px;
16791679
padding: 2px;
16801680
}
16811681
@@ -1738,7 +1738,6 @@ input:checked~.emotion-2>div {
17381738
className="emotion-3"
17391739
/>
17401740
</div>
1741-
<span />
17421741
</label>
17431742
`;
17441743

0 commit comments

Comments
 (0)