test: fix snapshot

This commit is contained in:
chenjiahan 2020-12-02 09:39:36 +08:00
parent ba11e3f249
commit 5de2acd964
4 changed files with 141 additions and 149 deletions

View File

@ -1,5 +1,4 @@
<template> <template>
<demo-section>
<demo-block :title="t('basicUsage')"> <demo-block :title="t('basicUsage')">
<van-contact-edit <van-contact-edit
is-edit is-edit
@ -10,7 +9,6 @@
@delete="onDelete" @delete="onDelete"
/> />
</demo-block> </demo-block>
</demo-section>
</template> </template>
<script> <script>

View File

@ -1,7 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = ` exports[`should render demo and match snapshot 1`] = `
<div>
<div> <div>
<div class="van-contact-edit"> <div class="van-contact-edit">
<div class="van-contact-edit__fields"> <div class="van-contact-edit__fields">
@ -73,5 +72,4 @@ exports[`should render demo and match snapshot 1`] = `
</div> </div>
</div> </div>
</div> </div>
</div>
`; `;

View File

@ -1,5 +1,4 @@
<template> <template>
<demo-section>
<demo-block :title="t('basicUsage')"> <demo-block :title="t('basicUsage')">
<van-contact-list <van-contact-list
v-model="chosenContactId" v-model="chosenContactId"
@ -10,7 +9,6 @@
@select="onSelect" @select="onSelect"
/> />
</demo-block> </demo-block>
</demo-section>
</template> </template>
<script> <script>

View File

@ -1,7 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = ` exports[`should render demo and match snapshot 1`] = `
<div>
<div> <div>
<div class="van-contact-list"> <div class="van-contact-list">
<div class="van-radio-group van-contact-list__group" <div class="van-radio-group van-contact-list__group"
@ -72,5 +71,4 @@ exports[`should render demo and match snapshot 1`] = `
</div> </div>
</div> </div>
</div> </div>
</div>
`; `;