mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[Improvement] Rebuild test system (#1051)
This commit is contained in:
18
packages/pull-refresh/test/__snapshots__/index.spec.js.snap
Normal file
18
packages/pull-refresh/test/__snapshots__/index.spec.js.snap
Normal file
@@ -0,0 +1,18 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`renders pull-refresh correctly 1`] = `
|
||||
<div>
|
||||
<div class="van-pull-refresh">
|
||||
<div class="van-pull-refresh__track" style="transition:0ms;transform:translate3d(0,0px, 0);">
|
||||
<div class="van-pull-refresh__head">
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
</div>
|
||||
<div>
|
||||
<p>刷新次数: 0</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
4
packages/pull-refresh/test/index.spec.js
Normal file
4
packages/pull-refresh/test/index.spec.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import PullRefresh from '../';
|
||||
import demoTest from '../../../test/demo-test';
|
||||
|
||||
demoTest(PullRefresh);
|
Reference in New Issue
Block a user