test: should not emit deprecation warning in test (#7356)

This commit is contained in:
neverland
2020-10-18 19:54:39 +08:00
committed by GitHub
parent 1b97315b54
commit 22888a7e97
20 changed files with 50 additions and 78 deletions
@@ -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>`;
+2 -2
View File
@@ -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',