1.

Is the following unit testing an asynchronous code is valid?

Answer»

Is the following unit testing an asynchronous code is VALID?
it("Using setTimeout() to SIMULATE ASYNC code!",
function(done){ setTimeout(function() { console.log("Test"); }, 200); });
Choose the correct option from below LIST
(1)Invalid
(2)Valid

Answer:-(1)Invalid



Discussion

No Comment Found