Jest Unit Test to see if Function is defined with specific argument

Viewed 13

Brand new to JS and Unit Testing. Trying to test if getPrices() has the argument taxBoolean defined. So all I'm trying to test is that the following would be true:

function getPrices(){ //add code here };

Here is what I have tried basing it from an example I found.

function unit test

0 Answers
Related