mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +00:00
test(NavBar): update test cases
This commit is contained in:
@@ -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
|
||||
<!---->
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user