Skip to content

Commit 56bc2e6

Browse files
committed
chore(x-mp): 调整测试例
1 parent 4f117b8 commit 56bc2e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/uni-mp-compiler/__tests__/uniElement.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ describe('compiler: transform UniElement.style.setProperty (wxs)', () => {
446446
`<unicloud-db ref="udb"/>`,
447447
`<unicloud-db ref="udb" style=\"{{'--status-bar-height:' + b}}\" u-i="2a9ec0b0-0" id="r0-2a9ec0b0" change:eS="{{uV.sS}}" eS="{{$eS[a]}}" change:eA="{{uV.sA}}" eA="{{$eA[a]}}" u-p="{{c||''}}"/>`,
448448
`(_ctx, _cache) => { "raw js"
449-
const __returned__ = { a: _sei('r0-2a9ec0b0', { "name": "unicloud-db", "type": 1 }, 'udb'), b: \`\${_ctx.u_s_b_h}px\`, c: _p({ id: 'r0-2a9ec0b0', style: { '--status-bar-height': \`\${_ctx.u_s_b_h}px\` } }) }
449+
const __returned__ = { a: _sei('r0-2a9ec0b0', { "name": "unicloud-db", "type": 1 }, 'udb'), b: \`\${_ctx.u_s_b_h}px\`, c: _p({ id: 'r0-2a9ec0b0', style: _normalizeStyle({ '--status-bar-height': \`\${_ctx.u_s_b_h}px\` }) }) }
450450
return __returned__
451451
}`,
452452
{

packages/uni-mp-weixin/__tests__/component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ describe('mp-weixin: transform component', () => {
301301
`<unicloud-db ref="udb"/>`,
302302
`<unicloud-db class="r" u-r="udb" style="{{'--status-bar-height:' + c}}" u-i="2a9ec0b0-0" bind:__l="__l" id="r0-2a9ec0b0" change:eS="{{uV.sS}}" eS="{{$eS[b]}}" change:eA="{{uV.sA}}" eA="{{$eA[b]}}" u-p="{{d||''}}"/>`,
303303
`(_ctx, _cache) => { "raw js"
304-
const __returned__ = { a: _sr('udb', '2a9ec0b0-0'), b: _sei('r0-2a9ec0b0', { "name": "unicloud-db", "type": 1 }, 'udb'), c: \`\${_ctx.u_s_b_h}px\`, d: _p({ id: 'r0-2a9ec0b0' }) }
304+
const __returned__ = { a: _sr('udb', '2a9ec0b0-0'), b: _sei('r0-2a9ec0b0', { "name": "unicloud-db", "type": 1 }, 'udb'), c: \`\${_ctx.u_s_b_h}px\`, d: _p({ id: 'r0-2a9ec0b0', class: 'r', style: _normalizeStyle({ '--status-bar-height': \`\${_ctx.u_s_b_h}px\` }) }) }
305305
return __returned__
306306
}`,
307307
{

0 commit comments

Comments
 (0)