jfirebaugh/chai-jquery — pull request #3 by swbiggart (2012-04-02 21:04:28+00:00)
Title: Allow usage as a Node or CommonJS module

I've been playing with chai-jquery and its been great. However, I also do my testing on the server side (with Node.js) and it currently doesn't support it.

Another chai plugin, [sinon-chai](https://github.com/domenic/sinon-chai), allows this, so I took the module loading boiler plate and applied it to chai-jquery.

The one caveat of this approach is that we must explicitly call:

```javascript
chai.use(chai_jquery);
```
after it has been included with a ```