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

View File

@@ -23,7 +23,7 @@ exports[`should render icon in the right side when setting icon-position to righ
</button>
`;
exports[`should render loading slot and match snapshot 1`] = `
exports[`should render loading slot correctly 1`] = `
<button type="button" class="van-button van-button--default van-button--normal van-button--loading">
<div class="van-button__content">Custom Loading
<!---->

View File

@@ -51,7 +51,7 @@ test('should change icon class prefix when using icon-prefix prop', () => {
expect(wrapper.html()).toMatchSnapshot();
});
test('should render loading slot and match snapshot', () => {
test('should render loading slot correctly', () => {
const wrapper = mount(Button, {
props: {
loading: true,