screwunit

Mocking a javascript method with ScrewUnit

Hi. I have a simple validation method as follows function someMethod { //some processing } I want to unit test this method. What is the simplest way I can mock it. Usually if I have an object as follows: var someObject = function() { reload : function() { //reload logic here } } I can stub someObject and then check if...

How can I get Screw.Unit to Run on Internet Explorer

Using the repo found here: http://github.com/nkallen/screw-unit and this commit: cc41f3cf373d804b11519704faf1971370f43760 I get this screen when viewing the package's "EXAMPLE.html" file: Basically all of the text showing how many tests were run and the describe/it clauses, and the test results are missing. The same revision work...