Skip to content

Commit

Permalink
chore: update jest snapshot (#4095)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Mar 22, 2024
1 parent 90745b5 commit 583ce52
Showing 1 changed file with 19 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { parseFragment, registerTemplate } from "lwc";
const $fragment1 = parseFragment`<span${"a0:data-dynamic"}${3}></span>`;
const $fragment2 = parseFragment`<span data-static="bar"${3}></span>`;
const $fragment3 = parseFragment`<span${"s0"}${3}></span>`;
const $fragment4 = parseFragment`<span style="quux"${3}></span>`;
const $fragment5 = parseFragment`<span${"a0:data-dynamic"}${"s0"}${"c0"}${2}></span>`;
const $fragment1 = parseFragment`<div${3}><span${"a1:data-dynamic"}${3}></span><span data-static="bar"${3}></span><span${"s3"}${3}></span><span style="quux"${3}></span><span${"a5:data-dynamic"}${"s5"}${"c5"}${2}></span></div>`;
const stc0 = {
key: 0,
};
Expand All @@ -12,45 +8,31 @@ function tmpl($api, $cmp, $slotset, $ctx) {
k: api_key,
sp: api_static_part,
st: api_static_fragment,
h: api_element,
i: api_iterator,
h: api_element,
} = $api;
return [
api_element(
"div",
stc0,
api_iterator($cmp.items, function (item) {
return api_element(
"div",
{
key: api_key(1, item.key),
},
[
api_static_fragment($fragment1, 3, [
api_static_part(0, {
attrs: {
"data-dynamic": $cmp.foo,
},
}),
]),
api_static_fragment($fragment2, 5),
api_static_fragment($fragment3, 7, [
api_static_part(0, {
style: $cmp.baaz,
}),
]),
api_static_fragment($fragment4, 9),
api_static_fragment($fragment5, 11, [
api_static_part(0, {
style: $cmp.baaz,
className: $cmp.bar,
attrs: {
"data-dynamic": $cmp.foo,
},
}),
]),
]
);
return api_static_fragment($fragment1, api_key(2, item.key), [
api_static_part(1, {
attrs: {
"data-dynamic": $cmp.foo,
},
}),
api_static_part(3, {
style: $cmp.baaz,
}),
api_static_part(5, {
style: $cmp.baaz,
className: $cmp.bar,
attrs: {
"data-dynamic": $cmp.foo,
},
}),
]);
})
),
];
Expand Down

0 comments on commit 583ce52

Please sign in to comment.