-
Notifications
You must be signed in to change notification settings - Fork 38
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
Where do I place a simple direct assert without the server/emit round-trip? #97
Comments
Yep. emit is not a good pattern. That's why we introduced |
Can it be made as simple as this?
I'm just trying to test some library functions that don't require the server or the client eval - the functions are independent. But I can't call these functions from an |
If that's a library. You can directly require it. Let's say your library is inside |
Thanks :) Arunoda Susiripala @arunoda http://twitter.com/arunoda On Wed, Apr 2, 2014 at 6:47 AM, Dan Dascalescu notifications@github.comwrote:
|
Laika is nice but honestly the whole
emit
roundtrip is a bit too much for simple tests. Where can I place just asserts to perform unit tests? I have this inserver/myfunc.js
:Then in
tests/
I have the official example, with some asserts but they all fail with reference errors:The text was updated successfully, but these errors were encountered: