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

Require.js instruction in readme #121

Open
daniel-nelson opened this issue May 21, 2014 · 0 comments
Open

Require.js instruction in readme #121

daniel-nelson opened this issue May 21, 2014 · 0 comments

Comments

@daniel-nelson
Copy link

When following the example in the Compatibility with Require.js section of the readme:

require ['jasmine.waitsfor.requirejs'], jasmine.getEnv().execute 

I was running into an error in which this was window in jasmine.js:

jasmine.Env.prototype.execute = function() {
  this.currentRunner_.execute();
};

Fixed by:

require ['file_to_require'], ->
  jasmine.getEnv().execute()

It might be helpful to others to update the readme.

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

1 participant