-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
How to use should.js in testacular environment? #227
Comments
As pointed out in tj/should.js#26 you can't use it in the browser. As all test you write in Testacular are run in the browser you can't use it. I suggest you have a look at chai.js and its should syntax. The syntax is nearly the same and it's fully usable in the browser. For a usage example have a look at this example. |
Thanks, I will give a try! On Tue, Dec 11, 2012 at 12:00 AM, Friedel Ziegelmayer <
Regards, http://about.me/davidshen |
FWIW, Chai won't work if you want to test against IE 8. The combination I've found to work reliably cross-platform is Testacular + Mocha + expect.js. I've used it to test IE 8, IE 9, Safari, Chrome, Firefox, and iOS Safari simultaneously. |
I like Mocha, and I want to use should.js as my assertion method. But I have no idea how to load this lib. Testacular is not a NodeJs, so I cannot use require. Is there any magic to do this?
The text was updated successfully, but these errors were encountered: