Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"should" is not defined #70

Closed
NV opened this issue Nov 23, 2011 · 4 comments
Closed

"should" is not defined #70

NV opened this issue Nov 23, 2011 · 4 comments

Comments

@NV
Copy link

NV commented Nov 23, 2011

An example from http://visionmedia.github.com/mocha/ doesn't work

[1,2,3].indexOf(4).should.equal(-1);

It doesn't look like neither should nor equal are defined.

lib ➤ ack equal --js
lib ➤ 

I'm curious how could it work. Do you intend to extend Object.prototype?

@deedubs
Copy link

deedubs commented Nov 23, 2011

This example is assuming you've run it ala

mocha -r should testfile.js

@NV
Copy link
Author

NV commented Nov 23, 2011

Thanks. I should use https://github.com/visionmedia/should.js then.

@NV NV closed this as completed Nov 23, 2011
@NV
Copy link
Author

NV commented Nov 23, 2011

Ugh, should.js doesn't work in the browser tj/should.js#26

@tamamadesu
Copy link

same question!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants