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

Commit 66e6505

Browse files
committed
chore: skip cypress after upgrade
1 parent 1fc6512 commit 66e6505

File tree

1 file changed

+54
-6
lines changed

1 file changed

+54
-6
lines changed

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

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,24 @@ exports[`CTag renders with close button properly 1`] = `
102102
class="chakra-icon css-1md6f3y"
103103
emit="(event, ...args) => instance.emit(event, ...args)"
104104
expose="exposed => {
105-
if (instance.exposed) {
106-
warn(\`expose() should be called only once per setup().\`);
105+
{
106+
if (instance.exposed) {
107+
warn(\`expose() should be called only once per setup().\`);
108+
}
109+
if (exposed != null) {
110+
let exposedType = typeof exposed;
111+
if (exposedType === 'object') {
112+
if (shared.isArray(exposed)) {
113+
exposedType = 'array';
114+
}
115+
else if (reactivity.isRef(exposed)) {
116+
exposedType = 'ref';
117+
}
118+
}
119+
if (exposedType !== 'object') {
120+
warn(\`expose() should be passed a plain object, received \${exposedType}.\`);
121+
}
122+
}
107123
}
108124
instance.exposed = exposed || {};
109125
}"
@@ -143,8 +159,24 @@ exports[`CTag renders with disabled button properly 1`] = `
143159
class="chakra-icon css-1md6f3y"
144160
emit="(event, ...args) => instance.emit(event, ...args)"
145161
expose="exposed => {
146-
if (instance.exposed) {
147-
warn(\`expose() should be called only once per setup().\`);
162+
{
163+
if (instance.exposed) {
164+
warn(\`expose() should be called only once per setup().\`);
165+
}
166+
if (exposed != null) {
167+
let exposedType = typeof exposed;
168+
if (exposedType === 'object') {
169+
if (shared.isArray(exposed)) {
170+
exposedType = 'array';
171+
}
172+
else if (reactivity.isRef(exposed)) {
173+
exposedType = 'ref';
174+
}
175+
}
176+
if (exposedType !== 'object') {
177+
warn(\`expose() should be passed a plain object, received \${exposedType}.\`);
178+
}
179+
}
148180
}
149181
instance.exposed = exposed || {};
150182
}"
@@ -223,8 +255,24 @@ exports[`CTag renders with left icon and close button 1`] = `
223255
class="chakra-icon css-1md6f3y"
224256
emit="(event, ...args) => instance.emit(event, ...args)"
225257
expose="exposed => {
226-
if (instance.exposed) {
227-
warn(\`expose() should be called only once per setup().\`);
258+
{
259+
if (instance.exposed) {
260+
warn(\`expose() should be called only once per setup().\`);
261+
}
262+
if (exposed != null) {
263+
let exposedType = typeof exposed;
264+
if (exposedType === 'object') {
265+
if (shared.isArray(exposed)) {
266+
exposedType = 'array';
267+
}
268+
else if (reactivity.isRef(exposed)) {
269+
exposedType = 'ref';
270+
}
271+
}
272+
if (exposedType !== 'object') {
273+
warn(\`expose() should be passed a plain object, received \${exposedType}.\`);
274+
}
275+
}
228276
}
229277
instance.exposed = exposed || {};
230278
}"

0 commit comments

Comments
 (0)