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 Skeleton from '..';
test('row-width array', () => {
const wrapper = mount(Skeleton, {
propsData: {
props: {
row: 4,
rowWidth: ['100%', 30, '5rem'],
},
@@ -25,7 +25,7 @@ test('render chidren', () => {
test('avatar shape', () => {
const wrapper = mount(Skeleton, {
propsData: {
props: {
avatar: true,
avatarSize: 20,
avatarShape: 'square',
@@ -36,7 +36,7 @@ test('avatar shape', () => {
test('round prop', () => {
const wrapper = mount(Skeleton, {
propsData: {
props: {
title: true,
round: true,
avatar: true,
@@ -47,7 +47,7 @@ test('round prop', () => {
test('disable animate', () => {
const wrapper = mount(Skeleton, {
propsData: {
props: {
row: 1,
aniamte: false,
},