mojito test crashes when require() is used #1314

Open
jithin1987 opened this Issue Jan 24, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@jithin1987

I have a model which uses require()
var fs = require('fs');

When I try to unit test this model, the test crashes and throws the following the error.

/home/y/lib/node_modules/mojito-cli/node_modules/mojito-cli-test/node_modules/yuitest/lib/yuitest-node.js:773
            throw new YUITest.ComparisonFailure(YUITest.Assert._formatMessage(
                  ^
ComparisonFailure: Value should be true.
ss [jithine@firedesire g11n_self_serve]$ echo $?
8

If I remove the require() statement the test execution will continue to it's logical end.

@drewfish

This comment has been minimized.

Show comment Hide comment
@drewfish

drewfish Jan 27, 2014

Contributor

Are you running your test in a browser or in node?

Contributor

drewfish commented Jan 27, 2014

Are you running your test in a browser or in node?

@jithin1987

This comment has been minimized.

Show comment Hide comment
@jithin1987

jithin1987 Jan 27, 2014

It's on node. It's. Unit test ran via mojito test—
Sent from Mailbox for iPhone

On Mon, Jan 27, 2014 at 10:18 AM, Drew Folta notifications@github.com
wrote:

Are you running your test in a browser or in node?

Reply to this email directly or view it on GitHub:
yahoo#1314 (comment)

It's on node. It's. Unit test ran via mojito test—
Sent from Mailbox for iPhone

On Mon, Jan 27, 2014 at 10:18 AM, Drew Folta notifications@github.com
wrote:

Are you running your test in a browser or in node?

Reply to this email directly or view it on GitHub:
yahoo#1314 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment