test: replace propsData with props
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user