Skip to content

Commit 8007538

Browse files
committed
tests
1 parent df09a1d commit 8007538

File tree

2 files changed

+6
-33
lines changed

2 files changed

+6
-33
lines changed

packages/core/src/__tests__/__snapshots__/qwik.test.ts.snap

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -887,27 +887,7 @@ exports.MyComponentOnMount = (p) => {
887887

888888
useStylesScopedQrl(qrl(\\"./low.js\\", \\"MyComponentStyles\\", []));
889889

890-
return h(
891-
\\"div\\",
892-
{
893-
\\"builder-id\\": \\"builder-192569f8d0a943398ec7ab9c327e104f\\",
894-
class: \\"cjrqfb1 builder-block\\",
895-
style: {
896-
backgroundColor: (() => {
897-
try {
898-
return state.hilitTitle ? \\"red\\" : \\"gray\\";
899-
} catch (err) {
900-
console.warn(\\"Builder code error\\", err);
901-
}
902-
})(),
903-
},
904-
},
905-
h(\\"div\\", {
906-
key: \\"builder-192569f8d0a943398ec7ab9c327e104f\\",
907-
class: \\"builder-text\\",
908-
dangerouslySetInnerHTML: state.title,
909-
})
910-
);
890+
return h(Fragment, null, \\"Enter some text...\\");
911891
};
912892
const __proxyMerge__ = (exports.__proxyMerge__ = function __proxyMerge__(
913893
state,
@@ -9975,7 +9955,7 @@ const qrl = require(\\"@builder.io/qwik\\").qrl;
99759955
const useStore = require(\\"@builder.io/qwik\\").useStore;
99769956
const useStylesScopedQrl = require(\\"@builder.io/qwik\\").useStylesScopedQrl;
99779957

9978-
exports.MyComponentStyles = \`.cjrqfb1{display:flex;flex-direction:column;position:relative;flex-shrink:0;box-sizing:border-box;margin-top:20px;line-height:normal;height:auto;text-align:center}\`;
9958+
exports.MyComponentStyles = \`.cxfmert{all:unset;display:flex;flex-direction:column;position:relative;flex-shrink:0;box-sizing:border-box;margin-top:20px;line-height:normal;height:auto;text-align:center}\`;
99799959
exports.MyComponentOnMount = (p) => {
99809960
const s = useStore(
99819961
() => {
@@ -10000,10 +9980,10 @@ exports.MyComponentOnMount = (p) => {
100009980
useStylesScopedQrl(qrl(\\"./low.js\\", \\"MyComponentStyles\\", []));
100019981

100029982
return h(
10003-
\\"div\\",
9983+
\\"button\\",
100049984
{
100059985
\\"builder-id\\": \\"builder-192569f8d0a943398ec7ab9c327e104f\\",
10006-
class: \\"cjrqfb1 builder-block\\",
9986+
class: \\"cxfmert builder-block\\",
100079987
style: {
100089988
backgroundColor: (() => {
100099989
try {
@@ -10014,11 +9994,7 @@ exports.MyComponentOnMount = (p) => {
100149994
})(),
100159995
},
100169996
},
10017-
h(\\"div\\", {
10018-
key: \\"builder-192569f8d0a943398ec7ab9c327e104f\\",
10019-
class: \\"builder-text\\",
10020-
dangerouslySetInnerHTML: state.title,
10021-
})
9997+
state.title
100229998
);
100239999
};
1002410000
const __proxyMerge__ = (exports.__proxyMerge__ = function __proxyMerge__(

packages/core/src/__tests__/qwik/specs/qwik.test.mount.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@
9090
}
9191
},
9292
"component": {
93-
"name": "Text",
94-
"options": {
95-
"text": "Enter some text..."
96-
}
93+
"name": "Core:Button"
9794
},
9895
"responsiveStyles": {
9996
"large": {

0 commit comments

Comments
 (0)