I have function that gets 3 arguments. I want to check that this function not throwing an error. I did something like this:
expect(myFunc).not.toThrow();
The problem is myFunc need to get argument. How can I send the arguments?
P.S I tried to pass it argument but I got error that myFunc(arg1, arg2, arg3) is not a function.
Aucun commentaire:
Enregistrer un commentaire