test: fix wrapper snapshot usage

This commit is contained in:
chenjiahan
2020-11-08 20:03:39 +08:00
parent 95f02cd6e2
commit fffb9b3d5d
60 changed files with 318 additions and 318 deletions
+3 -3
View File
@@ -83,7 +83,7 @@ test('render collapse-item slot', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('disable border', () => {
@@ -93,7 +93,7 @@ test('disable border', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('lazy render collapse content', async () => {
@@ -120,7 +120,7 @@ test('lazy render collapse content', async () => {
titles.at(1).trigger('click');
wrapper.vm.content = 'content';
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('toggle method', (done) => {