chore: rename scopedSlots to slots in legacy cases

This commit is contained in:
chenjiahan
2020-11-14 06:47:08 +08:00
parent bea039c810
commit 2550ac9111
21 changed files with 41 additions and 41 deletions
+6 -6
View File
@@ -44,7 +44,7 @@ test('click-thumb event', () => {
test('render price & num slot', () => {
const wrapper = mount(Card, {
scopedSlots: {
slots: {
num: () => 'Custom Num',
price: () => 'Custom Price',
},
@@ -55,7 +55,7 @@ test('render price & num slot', () => {
test('render origin-price slot', () => {
const wrapper = mount(Card, {
scopedSlots: {
slots: {
'origin-price': () => 'Custom Origin Price',
},
});
@@ -65,7 +65,7 @@ test('render origin-price slot', () => {
test('render bottom slot', () => {
const wrapper = mount(Card, {
scopedSlots: {
slots: {
bottom: () => 'Custom Bottom',
},
});
@@ -75,7 +75,7 @@ test('render bottom slot', () => {
test('render thumb & tag slot', () => {
const wrapper = mount(Card, {
scopedSlots: {
slots: {
tag: () => 'Custom Tag',
thumb: () => 'Custom Thumb',
},
@@ -86,7 +86,7 @@ test('render thumb & tag slot', () => {
test('render title & desc slot', () => {
const wrapper = mount(Card, {
scopedSlots: {
slots: {
title: () => 'Custom Title',
desc: () => 'Custom desc',
},
@@ -97,7 +97,7 @@ test('render title & desc slot', () => {
test('render price & price-top slot', () => {
const wrapper = mount(Card, {
scopedSlots: {
slots: {
price: () => 'Custom Price',
'price-top': () => 'Custom Price-top',
},