[nodejs] nodeunit sandbox example

2012-02-04 Thread Mark Volkmann
I have a nodeunit test that uses require('nodeunit').utils.sandbox. When I run the test I get "ReferenceError: require is not defined". Maybe I need to run the test using node instead of the nodeunit command. Can someone point me to an example of a nodeunit test that uses that feature? -- R. Mark

Re: [nodejs] nodeunit sandbox example

2012-02-04 Thread Martin Cooper
On Sat, Feb 4, 2012 at 8:01 PM, Mark Volkmann wrote: > I have a nodeunit test that uses require('nodeunit').utils.sandbox. When I > run the test I get "ReferenceError: require is not defined". Maybe I need to > run the test using node instead of the nodeunit command. Can someone point > me to an e

Re: [nodejs] nodeunit sandbox example

2012-02-05 Thread Mark Volkmann
On Sat, Feb 4, 2012 at 10:27 PM, Martin Cooper wrote: > On Sat, Feb 4, 2012 at 8:01 PM, Mark Volkmann > wrote: > > I have a nodeunit test that uses require('nodeunit').utils.sandbox. When > I > > run the test I get "ReferenceError: require is not defined". Maybe I > need to > > run the test usin

Re: [nodejs] nodeunit sandbox example

2012-02-05 Thread Martin Cooper
On Sun, Feb 5, 2012 at 5:04 AM, Mark Volkmann wrote: > On Sat, Feb 4, 2012 at 10:27 PM, Martin Cooper wrote: >> >> On Sat, Feb 4, 2012 at 8:01 PM, Mark Volkmann >> wrote: >> > I have a nodeunit test that uses require('nodeunit').utils.sandbox. When >> > I >> > run the test I get "ReferenceError:

Re: [nodejs] nodeunit sandbox example

2012-02-05 Thread Mark Volkmann
On Sun, Feb 5, 2012 at 12:49 PM, Martin Cooper wrote: > On Sun, Feb 5, 2012 at 5:04 AM, Mark Volkmann > wrote: > > On Sat, Feb 4, 2012 at 10:27 PM, Martin Cooper > wrote: > >> > >> On Sat, Feb 4, 2012 at 8:01 PM, Mark Volkmann < > r.mark.volkm...@gmail.com> > >> wrote: > >> > I have a nodeunit