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
+6 -6
View File
@@ -21,7 +21,7 @@ test('load event', async () => {
test('error loaded, click error-text and reload', async () => {
const wrapper = mount(List, {
propsData: {
props: {
errorText: 'Request failed. Click to reload...',
error: true,
},
@@ -52,7 +52,7 @@ test('error loaded, click error-text and reload', async () => {
test('finished', async () => {
const wrapper = mount(List, {
propsData: {
props: {
finished: true,
finishedText: 'Finished',
},
@@ -72,7 +72,7 @@ test('finished', async () => {
test('finished slot', async () => {
const wrapper = mount(List, {
propsData: {
props: {
finished: true,
},
scopedSlots: {
@@ -85,7 +85,7 @@ test('finished slot', async () => {
test('error slot', async () => {
const wrapper = mount(List, {
propsData: {
props: {
error: true,
},
scopedSlots: {
@@ -98,7 +98,7 @@ test('error slot', async () => {
test('immediate check false', async () => {
const wrapper = mount(List, {
propsData: {
props: {
immediateCheck: false,
},
});
@@ -139,7 +139,7 @@ test('check the direction props', () => {
slots: {
default: '<div class="list-item">list item</div>',
},
propsData: {
props: {
direction: 'up',
},
});