Skip to content

Commit 3fad5e9

Browse files
committed
fixup: revert unrelated Jest updates
1 parent 5ce0045 commit 3fad5e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/__tests__/cleanup.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('cleanup', () => {
1919
renderSubject()
2020
cleanup()
2121

22-
expect(onDestroyed).toHaveBeenCalledTimes(1)
22+
expect(onDestroyed).toHaveBeenCalledOnce()
2323
})
2424

2525
test('cleanup handles unexpected errors during mount', () => {

src/__tests__/mount.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('mount and destroy', () => {
1515

1616
expect(content).toBeInTheDocument()
1717
await act()
18-
expect(onMounted).toHaveBeenCalledTimes(1)
18+
expect(onMounted).toHaveBeenCalledOnce()
1919
})
2020

2121
test('component is destroyed', async () => {
@@ -28,6 +28,6 @@ describe('mount and destroy', () => {
2828

2929
expect(content).not.toBeInTheDocument()
3030
await act()
31-
expect(onDestroyed).toHaveBeenCalledTimes(1)
31+
expect(onDestroyed).toHaveBeenCalledOnce()
3232
})
3333
})

src/__tests__/rerender.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('rerender', () => {
2323
await rerender({ props: { name: 'Dolly' } })
2424

2525
expect(element).toHaveTextContent('Hello Dolly!')
26-
expect(console.warn).toHaveBeenCalledTimes(1)
26+
expect(console.warn).toHaveBeenCalledOnce()
2727
expect(console.warn).toHaveBeenCalledWith(
2828
expect.stringMatching(/deprecated/iu)
2929
)

0 commit comments

Comments
 (0)