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
+7 -7
View File
@@ -34,7 +34,7 @@ test('Dialog function call', async () => {
test('before close', () => {
const wrapper = mount(DialogComponent, {
propsData: {
props: {
value: true,
showCancelButton: true,
closeOnClickOverlay: true,
@@ -77,7 +77,7 @@ test('register component', () => {
test('button color', () => {
const wrapper = mount(DialogComponent, {
propsData: {
props: {
value: true,
showCancelButton: true,
cancelButtonColor: 'white',
@@ -89,7 +89,7 @@ test('button color', () => {
test('button text', () => {
const wrapper = mount(DialogComponent, {
propsData: {
props: {
value: true,
showCancelButton: true,
cancelButtonText: 'Custom cancel',
@@ -105,7 +105,7 @@ test('dialog component', () => {
test('default slot', () => {
const wrapper = mount(DialogComponent, {
propsData: {
props: {
value: true,
},
scopedSlots: {
@@ -117,7 +117,7 @@ test('default slot', () => {
test('title slot', () => {
const wrapper = mount(DialogComponent, {
propsData: {
props: {
value: true,
},
scopedSlots: {
@@ -129,7 +129,7 @@ test('title slot', () => {
test('allow-html prop', () => {
const wrapper = mount(DialogComponent, {
propsData: {
props: {
value: true,
message: '<span>text</span>',
allowHtml: false,
@@ -148,7 +148,7 @@ test('open & close event', () => {
test('width prop', () => {
const wrapper = mount(DialogComponent, {
propsData: {
props: {
value: true,
width: 200,
},