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

Commit 21f04cc

Browse files
committed
test: fix test output
1 parent a3b0095 commit 21f04cc

File tree

2 files changed

+32
-36
lines changed

2 files changed

+32
-36
lines changed

packages/c-avatar/src/c-avatar.tsx

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -223,32 +223,29 @@ export const CAvatar = defineComponent({
223223
isLoaded: computed(() => isLoaded.value),
224224
})
225225

226-
return () => {
227-
console.log("render c-avatar", chakra.span)
228-
return (
229-
<chakra.span
230-
__label="avatar"
231-
data-loaded={dataAttr(isLoaded.value)}
232-
__css={avatarStyles.value}
233-
{...attrs}
234-
>
235-
<CAvatarImage
236-
src={props.src}
237-
srcSet={props.srcSet}
238-
loading={props.loading}
239-
onLoad={handleLoaded}
240-
onError={(e) => emit("error", e)}
241-
initials={props.initials}
242-
name={props.name}
243-
// @ts-ignore
244-
borderRadius={props.borderRadius}
245-
iconLabel={props.iconLabel}
246-
ignoreFallback={props.ignoreFallback}
247-
{...extractedAttrs.value.imgAttrs}
248-
/>
249-
{slots?.default?.()}
250-
</chakra.span>
251-
)
252-
}
226+
return () => (
227+
<chakra.span
228+
__label="avatar"
229+
data-loaded={dataAttr(isLoaded.value)}
230+
__css={avatarStyles.value}
231+
{...attrs}
232+
>
233+
<CAvatarImage
234+
src={props.src}
235+
srcSet={props.srcSet}
236+
loading={props.loading}
237+
onLoad={handleLoaded}
238+
onError={(e) => emit("error", e)}
239+
initials={props.initials}
240+
name={props.name}
241+
// @ts-ignore
242+
borderRadius={props.borderRadius}
243+
iconLabel={props.iconLabel}
244+
ignoreFallback={props.ignoreFallback}
245+
{...extractedAttrs.value.imgAttrs}
246+
/>
247+
{slots?.default?.()}
248+
</chakra.span>
249+
)
253250
},
254251
}) as any as ComponentWithProps<CAvatarProps>

packages/c-checkbox/tests/__snapshots__/c-checkbox.test.ts.snap

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@ exports[`should render properly 1`] = `
2828
data-part="control"
2929
id="control-chakra-checkbox-EMPTY_STRING"
3030
>
31-
<transition-stub
32-
__css="[object Object]"
33-
appear="false"
34-
css="false"
35-
mode="out-in"
36-
persisted="false"
37-
style="display: flex; align-items: center; justify-content: center; height: 100%;"
31+
<svg
32+
class="css-1mg6af5"
33+
style="fill: none; stroke-width: 2; stroke: currentColor; stroke-dasharray: 16;"
34+
viewBox="0 0 12 10"
3835
>
39-
<!---->
40-
</transition-stub>
36+
<polyline
37+
points="1.5 6 4.5 9 10.5 1"
38+
/>
39+
</svg>
4140
</span>
4241
<!---->
4342
</label>

0 commit comments

Comments
 (0)