mirror of
https://github.com/youzan/vant.git
synced 2026-05-16 01:07:43 +08:00
test: should not emit deprecation warning in test (#7356)
This commit is contained in:
@@ -22,6 +22,13 @@ exports[`Icon render icon slot 1`] = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Icon render icon slot with badge 1`] = `
|
||||
<div role="button" tabindex="0" class="van-goods-action-icon">
|
||||
<div class="van-goods-action-icon__icon">Custom Icon<div class="van-info">1</div>
|
||||
</div>Text
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Icon render icon slot with dot 1`] = `
|
||||
<div role="button" tabindex="0" class="van-goods-action-icon">
|
||||
<div class="van-goods-action-icon__icon">Custom Icon<div class="van-info van-info--dot"></div>
|
||||
@@ -29,11 +36,4 @@ exports[`Icon render icon slot with dot 1`] = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Icon render icon slot with info 1`] = `
|
||||
<div role="button" tabindex="0" class="van-goods-action-icon">
|
||||
<div class="van-goods-action-icon__icon">Custom Icon<div class="van-info">1</div>
|
||||
</div>Text
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`disable safe-area-inset-bottom prop 1`] = `<div class="van-goods-action van-goods-action--unfit"></div>`;
|
||||
|
||||
@@ -50,12 +50,12 @@ test('Icon render icon slot', () => {
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('Icon render icon slot with info', () => {
|
||||
test('Icon render icon slot with badge', () => {
|
||||
const wrapper = mount({
|
||||
render(h) {
|
||||
return h(Icon, {
|
||||
props: {
|
||||
info: '1',
|
||||
badge: '1',
|
||||
},
|
||||
scopedSlots: {
|
||||
default: () => 'Text',
|
||||
|
||||
Reference in New Issue
Block a user