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 content slot and match snapshot 1`] = `<div class="van-badge">Custom Content</div>`;
exports[`should render content slot correctly 1`] = `<div class="van-badge">Custom Content</div>`;
exports[`should render nothing when badge is empty string 1`] = `<!---->`;
+1 -1
View File
@@ -31,7 +31,7 @@ test('should render nothing when badge is zero', () => {
expect(wrapper.html()).toMatchSnapshot();
});
test('should render content slot and match snapshot', () => {
test('should render content slot correctly', () => {
const wrapper = mount(Badge, {
slots: {
content: () => 'Custom Content',