Closed Oroul closed 4 years ago
There is no test to ensure the function is called only two times, so the following code will pass tests when it probably shouldn't:
const solution = (a, fun) => { setTimeout(() => { solution(fun(), fun) }, a) }
There is no test to ensure the function is called only two times, so the following code will pass tests when it probably shouldn't: