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
+6 -6
View File
@@ -70,7 +70,7 @@ test('label slot', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('left slot', () => {
@@ -80,7 +80,7 @@ test('left slot', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('left-icon prop', () => {
@@ -90,7 +90,7 @@ test('left-icon prop', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('right-icon prop', () => {
@@ -100,7 +100,7 @@ test('right-icon prop', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('right-icon slot', () => {
@@ -110,7 +110,7 @@ test('right-icon slot', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('action-text prop', () => {
@@ -121,5 +121,5 @@ test('action-text prop', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});