Skip to content

Commit

Permalink
test: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Feb 2, 2023
1 parent b125fc2 commit 8e932b2
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 85 deletions.
12 changes: 6 additions & 6 deletions src/calendar/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -756,14 +756,14 @@ exports[`calendar :base 1`] = `
data-custom="{{null}}"
formType=""
hoverClass="t-button--hover"
hoverStartTime="{{0}}"
hoverStayTime="{{0}}"
hoverStartTime="{{20}}"
hoverStayTime="{{70}}"
hoverStopPropagation="{{false}}"
lang=""
lang="en"
openType=""
sendMessageImg=""
sendMessagePath=""
sendMessageTitle=""
sendMessageImg="截图"
sendMessagePath="当前分享路径"
sendMessageTitle="当前标题"
sessionFrom=""
showMessageCard="{{false}}"
style=""
Expand Down
65 changes: 5 additions & 60 deletions src/drawer/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`Drawer Drawer base demo works fine 1`] = `
基础抽屉
</t-button>
<t-drawer
items=""
items="{{Array []}}"
placement="left"
visible=""
bind:item-click="itemClick"
Expand All @@ -33,68 +33,13 @@ exports[`Drawer Drawer footer demo works fine 1`] = `
带底部插槽
</t-button>
<t-drawer
items="{{
Array [
Object {
"title": "菜单一",
},
Object {
"title": "菜单二",
},
Object {
"title": "菜单三",
},
Object {
"title": "菜单四",
},
Object {
"title": "菜单五",
},
Object {
"title": "菜单六",
},
Object {
"title": "菜单七",
},
Object {
"title": "菜单八",
},
Object {
"title": "菜单四",
},
Object {
"title": "菜单五",
},
Object {
"title": "菜单六",
},
Object {
"title": "菜单七",
},
Object {
"title": "菜单八",
},
]
}}"
items="{{Array []}}"
placement="left"
title="标题"
visible="{{false}}"
bind:item-click="itemClick"
bind:overlay-click="overlayClick"
>
<wx-view
class="button-host"
>
<t-button
block="{{true}}"
size="large="
slot="footer"
variant="outline"
>
操作
</t-button>
</wx-view>
</t-drawer>
/>
</footer>
`;

Expand All @@ -110,7 +55,7 @@ exports[`Drawer Drawer icon-drawer demo works fine 1`] = `
带图标抽屉
</t-button>
<t-drawer
items=""
items="{{Array []}}"
placement="left"
visible=""
bind:item-click="itemClick"
Expand All @@ -131,7 +76,7 @@ exports[`Drawer Drawer title demo works fine 1`] = `
带标题抽屉
</t-button>
<t-drawer
items=""
items="{{Array []}}"
placement="left"
title="标题"
visible=""
Expand Down
2 changes: 1 addition & 1 deletion src/popup/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Popup Popup base demo works fine 1`] = `
<base>
<t-popup
placement=""
placement="top"
visible=""
bind:visible-change="onVisibleChange"
>
Expand Down
4 changes: 0 additions & 4 deletions src/result/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ exports[`Result Result theme demo works fine 1`] = `
class="demo-section__content"
>
<t-result
description=""
theme="success"
title="成功状态"
/>
Expand All @@ -87,7 +86,6 @@ exports[`Result Result theme demo works fine 1`] = `
class="demo-section__content"
>
<t-result
description=""
theme="error"
title="失败状态"
/>
Expand All @@ -98,7 +96,6 @@ exports[`Result Result theme demo works fine 1`] = `
class="demo-section__content"
>
<t-result
description=""
theme="warning"
title="警示状态"
/>
Expand All @@ -109,7 +106,6 @@ exports[`Result Result theme demo works fine 1`] = `
class="demo-section__content"
>
<t-result
description=""
theme="default"
title="默认状态"
/>
Expand Down
24 changes: 12 additions & 12 deletions src/side-bar/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`SideBar SideBar base demo works fine 1`] = `
bind:change="onSideBarChange"
>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
label="选项选项选项选项"
value="{{0}}"
/>
Expand All @@ -24,7 +24,7 @@ exports[`SideBar SideBar base demo works fine 1`] = `
value="{{1}}"
/>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
label="选项"
value="{{2}}"
/>
Expand All @@ -38,7 +38,7 @@ exports[`SideBar SideBar base demo works fine 1`] = `
value="{{3}}"
/>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
label="选项"
value="{{4}}"
/>
Expand Down Expand Up @@ -525,7 +525,7 @@ exports[`SideBar SideBar custom demo works fine 1`] = `
bind:change="onSideBarChange"
>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
label="选项选项"
value="{{0}}"
/>
Expand All @@ -539,7 +539,7 @@ exports[`SideBar SideBar custom demo works fine 1`] = `
value="{{1}}"
/>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
label="选项"
value="{{2}}"
/>
Expand All @@ -553,7 +553,7 @@ exports[`SideBar SideBar custom demo works fine 1`] = `
value="{{3}}"
/>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
label="选项"
value="{{4}}"
/>
Expand Down Expand Up @@ -1040,7 +1040,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = `
bind:change="onSideBarChange"
>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
disabled=""
label="选项"
value="{{0}}"
Expand All @@ -1056,7 +1056,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = `
value="{{1}}"
/>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
disabled=""
label="选项"
value="{{2}}"
Expand All @@ -1072,7 +1072,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = `
value="{{3}}"
/>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
disabled="{{true}}"
label="选项"
value="{{4}}"
Expand Down Expand Up @@ -1562,7 +1562,7 @@ exports[`SideBar SideBar with-icon demo works fine 1`] = `
bind:change="onSideBarChange"
>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
icon="app"
label="选项"
value="{{0}}"
Expand All @@ -1578,7 +1578,7 @@ exports[`SideBar SideBar with-icon demo works fine 1`] = `
value="{{1}}"
/>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
icon="app"
label="选项"
value="{{2}}"
Expand All @@ -1594,7 +1594,7 @@ exports[`SideBar SideBar with-icon demo works fine 1`] = `
value="{{3}}"
/>
<t-side-bar-item
badgeProps=""
badgeProps="{{Object {}}}"
icon="app"
label="选项"
value="{{4}}"
Expand Down
4 changes: 2 additions & 2 deletions src/tab-bar/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,15 @@ exports[`TabBar TabBar sub demo works fine 1`] = `
theme="tag"
>
<t-tab-bar-item
subTabBar=""
subTabBar="{{Array []}}"
value="home"
>
首页
</t-tab-bar-item>
<t-tab-bar-item
subTabBar=""
subTabBar="{{Array []}}"
value="app"
>
Expand Down

0 comments on commit 8e932b2

Please sign in to comment.