2 ms·
What you are testing is that results of shouldExecute() are followed. This is verified either that your passed in mock function also got called with the right
by 8note 5y ago
What you are testing is that results of shouldExecute() are followed.
This is verified either that your passed in mock function also got called with the right parameters, or that the return value shows that the function was executed.
If your shouldExecute function is bad, it's tests should fail, not some other file