I thought about that the other day as well. It would be nice to have a
post-processor that automatically "encapsulates" an existing file
content with a custom prefix/postfix pair. The test case could work on
the file contents without worrying about accessibility while the
"compiled" version does not expose anything to the outside world.


> 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.

-- 
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

Reply via email to