-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add ability to specify jQuery object #36
Comments
I'm dealing with a similar issue: multiple jQuery instances. How about replacing this:
to this:
Based on this SO answer. Duck test instead of instance test. |
Should probably be |
Nope. It's just a property where jQuery provides version:
|
Ah, make sense. Always forget that's how you get the version, kinda off putting. |
Related to this issue, I was thinking of using chai-jquery with zombie.js. Jquery is available from browser.window.$. Now I have to write following after each page load, since browser.window.$ will be new after each page load: before(function () {
chai.use(function (chai, utils) {
return chaiJquery(chai, utils, browser.window.$)
})
}) What if users could implement a function that is called for every assertion: chai.use(function (chai, utils) {
return chaiJquery(chai, utils, function() { return browser.window.$})
}) |
Would really love to see this. I'm in a similar situation where the hard coded |
I made a pull request #66 |
This pull request would fix my issue, any reason why it can't move ahead? |
+1 |
At the moment
chai-jquery
assumes jQuery isjQuery
on thewindow
object, but this isn't always the case, e.g. Ember hasEmber.$
. Allow an option to specify the jQuery object.The text was updated successfully, but these errors were encountered: