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
@@ -3,7 +3,7 @@ import Overlay from '..';
test('z-index prop', () => {
const wrapper = mount(Overlay, {
propsData: {
props: {
show: true,
zIndex: 99,
},
@@ -14,7 +14,7 @@ test('z-index prop', () => {
test('class-name prop', () => {
const wrapper = mount(Overlay, {
propsData: {
props: {
show: true,
className: 'my-overlay',
},
@@ -25,7 +25,7 @@ test('class-name prop', () => {
test('custom style prop', () => {
const wrapper = mount(Overlay, {
propsData: {
props: {
show: true,
customStyle: {
backgroundColor: 'red',
@@ -38,7 +38,7 @@ test('custom style prop', () => {
test('duration prop', () => {
const wrapper = mount(Overlay, {
propsData: {
props: {
show: true,
duration: 1,
},