To assert any function, you can you use expect.any(constructor)
:
So with your example it would be like this:
expect(AP.require).toBeCalledWith('messages', expect.any(Function))
To assert any function, you can you use expect.any(constructor)
:
So with your example it would be like this:
expect(AP.require).toBeCalledWith('messages', expect.any(Function))