diff --git a/README.md b/README.md index 228603b..1ab10cb 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,16 @@ Include `chai-jquery.js` in your test file, after `chai.js` (version 1.0.0-rc1 o ``` +If you are using an AMD like requirejs, you can pull in chai-jquery as a dependency and it will return an initialization function that can be passed to chai: + +```js +require([ + 'chai-jquery' +], function(chaiJquery) { + chai.use(chaiJquery); +}); +``` + Use the assertions with chai's `expect` or `should` assertions. ## Assertions