This may be too basic but it's escaping me at the moment. I have accidentally created the following working code in Jest whilst writing a test for a Vue application:
const updateMethod = wrapper.vm.updateMethod = jest.fn()
expect(updateVal).toHaveBeenCalledWith('methodArgument')
I was just wondering what is the name of this sort of an assignment? I'm lacking the thought process at the moment due to burn out to refactor this.
Thank you!