1

I have a method that contains a console.log() statement. For the sake of the question, let's say that it is this:

$scope.logInput = function(input) { console.log("Input was " + input); }; 

How can I write a unit test using Jasmine that will confirm that the console log is working? I don't see any obvious way of intercepting console data or checking the contents of it.

1

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.