At Caplin we use the JsUnit framework to test our JavaScript code. Over time we have made minor modifications to it, integrating Mock4JS and JSCoverage, as well as adding a few of our own extensions that are sympathetic ...Read More
Tag: Mock4JS
How to dynamically create a class definition for use with Mock4JS
Mock4JS is a really useful unit testing helper library that allows you to create mocks of your JavaScript classes. What it doesn't presently support is mocking of objects that you can't create an instance of yourself using new Class() or ...Read More