I'm currently trying to create a test suite for my javascript applications. My problem is that it seems that I cannot access init () from my utils object, as you can see below:
I have an application that follows a singleton pattern:
var appModal = function () {
var utils = Object.create(moduleUtils);
function init(caller, options ) {
}
}();
My test suite is in the Utils module, this is an object literal converted to a prototype
moduleUtils.debug = {
addSlideTest : function(){
}}
source
share