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
@@ -4,7 +4,7 @@ import { mount, later } from '../../../test';
test('speed is 0', async () => {
const wrapper = mount(Circle, {
propsData: {
props: {
rate: 50,
value: 0,
},
@@ -24,7 +24,7 @@ test('speed is 0', async () => {
test('animate', async () => {
const onInput = jest.fn();
mount(Circle, {
propsData: {
props: {
rate: 50,
speed: 100,
},
@@ -40,7 +40,7 @@ test('animate', async () => {
test('size prop', () => {
const wrapper = mount(Circle, {
propsData: {
props: {
size: 100,
},
});
@@ -50,7 +50,7 @@ test('size prop', () => {
test('stroke-linecap prop', () => {
const wrapper = mount(Circle, {
propsData: {
props: {
strokeLinecap: 'square',
},
});