We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a09baf4 commit 6f57f4eCopy full SHA for 6f57f4e
src/__tests__/stopwatch.js
@@ -37,20 +37,3 @@ test('updates component state', async () => {
37
// content has changed.
38
expect(elapsedTime).toHaveTextContent(timeBeforeStop)
39
})
40
-
41
-test('unmounts a component', async () => {
42
- jest.spyOn(console, 'error').mockImplementation(() => {})
43
44
- const {unmount, isUnmounted, getByText} = render(StopWatch)
45
- await fireEvent.click(getByText('Start'))
46
47
- // Destroys a Vue component instance.
48
- unmount()
49
50
- expect(isUnmounted()).toBe(true)
51
52
- // Wait for a few milliseconds
53
- await sleep(5)
54
55
- expect(console.error).not.toHaveBeenCalled()
56
-})
0 commit comments