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
+4 -4
View File
@@ -23,7 +23,7 @@ test('cancel event', () => {
const onCancel = jest.fn();
const wrapper = mount(Search, {
propsData: {
props: {
value: 'test',
showAction: true,
},
@@ -85,7 +85,7 @@ test('left slot', () => {
test('left-icon prop', () => {
const wrapper = mount(Search, {
propsData: {
props: {
leftIcon: 'setting-o',
},
});
@@ -95,7 +95,7 @@ test('left-icon prop', () => {
test('right-icon prop', () => {
const wrapper = mount(Search, {
propsData: {
props: {
rightIcon: 'setting-o',
},
});
@@ -115,7 +115,7 @@ test('right-icon slot', () => {
test('action-text prop', () => {
const wrapper = mount(Search, {
propsData: {
props: {
actionText: 'Custom Text',
showAction: true,
},