test(NavBar): update test cases

This commit is contained in:
chenjiahan
2020-11-14 07:06:21 +08:00
parent 2b34fac38d
commit 98c553de29
18 changed files with 82 additions and 73 deletions
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render default slot and match snapshot 1`] = `
exports[`should render default slot correctly 1`] = `
<button type="button" class="van-button van-button--default van-button--large van-action-bar-button">
<div class="van-button__content">
<!----><span class="van-button__text">Content</span>
+1 -1
View File
@@ -1,7 +1,7 @@
import { mount } from '@vue/test-utils';
import ActionBarButton from '..';
test('should render default slot and match snapshot', () => {
test('should render default slot correctly', () => {
const wrapper = mount(ActionBarButton, {
slots: {
default: 'Content',