Skip to content

Add documentation for using chai-jquery with an AMD like require.js#68

Open
jvennix-rmn wants to merge 2 commits intochaijs:masterfrom
jvennix-rmn:add-amd-usage-docs
Open

Add documentation for using chai-jquery with an AMD like require.js#68
jvennix-rmn wants to merge 2 commits intochaijs:masterfrom
jvennix-rmn:add-amd-usage-docs

Conversation

@jvennix-rmn
Copy link
Copy Markdown

It took me a minute to look through the source to see how to do this.

```js
require([
'chai-jquery'
], function(chaiJquery) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you require chai as well? You don't want to rely on a global instance.

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.

2 participants