(component: any, callCounts: number[])
| 82 | }) |
| 83 | |
| 84 | function assertHookCalls(component: any, callCounts: number[]) { |
| 85 | expect([ |
| 86 | component.created.mock.calls.length, |
| 87 | component.mounted.mock.calls.length, |
| 88 | component.activated.mock.calls.length, |
| 89 | component.deactivated.mock.calls.length, |
| 90 | component.unmounted.mock.calls.length, |
| 91 | ]).toEqual(callCounts) |
| 92 | } |
| 93 | |
| 94 | test('should preserve state', async () => { |
| 95 | const viewRef = ref('one') |
no outgoing calls
no test coverage detected