Skip to content

Commit

Permalink
fix(date-picker): fix autoupdate of snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed May 27, 2021
1 parent e0b7155 commit 9ce63b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ exports[`test datePicker style and type 2`] = `
<!--v-if-->
<div class=\\"var-button__content\\">25</div>
</button></li>
<li><button class=\\"var-button var--box var-button--normal var--inline-flex var-button--text-primary var-button--text var-button--round var-button--outline var-day-picker__button var-day-picker__button--usable\\" style=\\"color: rgb(123, 184, 114);\\" var-day-picker-cover=\\"\\">
<li><button class=\\"var-button var--box var-button--normal var--inline-flex var-button--text-primary var-button--text var-button--round var-day-picker__button var-day-picker__button--usable\\" style=\\"color: rgba(0, 0, 0, 0.87);\\" var-day-picker-cover=\\"\\">
<!--v-if-->
<div class=\\"var-button__content\\">26</div>
</button></li>
Expand Down
2 changes: 2 additions & 0 deletions packages/varlet-ui/src/date-picker/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ test('test datePicker style and type', async () => {

await wrapper.setData({ type: 'date', date: '2021-05-19' })

await delay(200)

expect(wrapper.html()).toMatchSnapshot()
})

Expand Down

0 comments on commit 9ce63b7

Please sign in to comment.