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 9befd54 commit c46413aCopy full SHA for c46413a
src/__tests__/stopwatch.js
@@ -34,20 +34,3 @@ test('updates component state', async () => {
34
// content has changed.
35
expect(elapsedTime).toHaveTextContent(timeBeforeStop)
36
})
37
-
38
-test('unmounts a component', async () => {
39
- jest.spyOn(console, 'error').mockImplementation(() => {})
40
41
- const {unmount, isUnmounted, getByText} = render(StopWatch)
42
- await fireEvent.click(getByText('Start'))
43
44
- // Destroys a Vue component instance.
45
- unmount()
46
47
- expect(isUnmounted()).toBe(true)
48
49
- // Wait for a few milliseconds
50
- await sleep(5)
51
52
- expect(console.error).not.toHaveBeenCalled()
53
-})
0 commit comments