test: replace propsData with props

This commit is contained in:
chenjiahan
2020-11-13 23:33:15 +08:00
parent c33720a793
commit e627805746
54 changed files with 377 additions and 377 deletions
+5 -5
View File
@@ -3,7 +3,7 @@ import { mount, later, trigger, triggerDrag } from '../../../test';
test('change head content when pulling down', async () => {
const wrapper = mount(PullRefresh, {
propsData: {
props: {
value: false,
},
listeners: {
@@ -77,7 +77,7 @@ test('custom content by slots', async () => {
test('pull a short distance', () => {
const wrapper = mount(PullRefresh, {
propsData: {
props: {
value: false,
},
});
@@ -89,7 +89,7 @@ test('pull a short distance', () => {
test('not in page top', () => {
const wrapper = mount(PullRefresh, {
propsData: {
props: {
value: false,
},
});
@@ -107,7 +107,7 @@ test('not in page top', () => {
test('render success text', async () => {
const wrapper = mount(PullRefresh, {
propsData: {
props: {
successText: 'success',
successDuration: 0,
},
@@ -159,7 +159,7 @@ test('render success slot', async () => {
test('should set height when using head-height', async () => {
const wrapper = mount(PullRefresh, {
propsData: {
props: {
headHeight: 100,
},
});