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
+5 -5
View File
@@ -67,7 +67,7 @@ test('disable auto-start prop', async () => {
});
await later(50);
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('start method', async () => {
@@ -135,7 +135,7 @@ test('complete format prop', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('milliseconds format SS', () => {
@@ -147,7 +147,7 @@ test('milliseconds format SS', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('milliseconds format S', () => {
@@ -159,7 +159,7 @@ test('milliseconds format S', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('incomplate format prop', () => {
@@ -171,7 +171,7 @@ test('incomplate format prop', () => {
},
});
expect(wrapper).toMatchSnapshot();
expect(wrapper.html()).toMatchSnapshot();
});
test('pause when unmounted', () => {