On Thu, Feb 17, 2011 at 3:32 PM, Matthias Reuter <m...@gweax.de> wrote: > Hi all, > > I use the module pattern to keep the global object clean. Mostly, my modules > are completely independant, so I do not use the revealing module pattern. > > Now the question is, how do I unit-test function a and function b? Somehow I > need to be able to access these functions, on the other hand I actually > don't want these to be accessible, otherwise I wouldn't have chosen the > module pattern.
If you need to test those functions you have a problem in your application architecture in most cases. -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a non-Google archive, visit here: http://www.mail-archive.com/jsmentors@googlegroups.com/ To unsubscribe from this group, send email to jsmentors+unsubscr...@googlegroups.com