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
+3 -3
View File
@@ -18,7 +18,7 @@ const list = [
test('unswitchable', () => {
const wrapper = mount(AddressList, {
propsData: {
props: {
list,
switchable: false,
},
@@ -30,7 +30,7 @@ test('unswitchable', () => {
test('select event', () => {
const onSelect = jest.fn();
const wrapper = mount(AddressList, {
propsData: {
props: {
list,
},
context: {
@@ -48,7 +48,7 @@ test('select event', () => {
test('click-item event', () => {
const onClickItem = jest.fn();
const wrapper = mount(AddressList, {
propsData: {
props: {
list,
},
context: {