On Thu, Feb 17, 2011 at 3:32 PM, Matthias Reuter <[email protected]> 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/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to