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

repairing language tests #1177

Merged
merged 1 commit into from Oct 13, 2013

Conversation

icambron
Copy link
Member

@icambron icambron commented Oct 9, 2013

We added tests to verify that languages actually exported the language they contain, but the way the test is written, it only works correctly in Node, since AMD passes the result through a callback, not as the return value to require. So our tests were failing in the browser.

I just made the test not run in the browser, and then verified it using a local instance of momentjs.com.

@ichernev
Copy link
Contributor

That makes sense. Thanks!

@timrwood
Copy link
Member

This is due to a hack I wrote to simulate require('moment') when running nodeunit in the browser.

https://github.com/moment/momentjs.com/blob/gh-pages/source/js/test-start.js#L2-L4

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

Successfully merging this pull request may close these issues.

None yet

3 participants