[Improvement] Optimize demo test (#1053)

This commit is contained in:
neverland
2018-05-12 16:08:09 +08:00
committed by GitHub
parent 4de1e7da55
commit a3c1e49eee
147 changed files with 582 additions and 513 deletions

View File

@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders contact-card correctly 1`] = `
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-contact-card van-contact-card--add">
@@ -47,13 +47,13 @@ exports[`renders contact-card correctly 1`] = `
<div class="van-popup van-popup--bottom" style="display:none;">
<div class="van-contact-edit">
<div class="van-cell-group van-hairline--top-bottom">
<div maxlength="30" placeholder="名字" class="van-cell van-hairline van-field">
<div maxlength="30" placeholder="张三" class="van-cell van-hairline van-field">
<!---->
<div class="van-cell__title"><span>联系人</span>
<!---->
</div>
<div class="van-cell__value">
<input type="text" maxlength="30" placeholder="名字" class="van-field__control">
<input type="text" maxlength="30" placeholder="张三" class="van-field__control">
<!---->
<!---->
<!---->

View File

@@ -0,0 +1,4 @@
import Demo from '../demo';
import demoTest from '../../../test/demo-test';
demoTest(Demo);

View File

@@ -1,4 +0,0 @@
import ContactCard from '../';
import demoTest from '../../../test/demo-test';
demoTest(ContactCard);