diff --git a/plugins/chai_http.md b/plugins/chai_http.md index a99ec03..8e9fcdd 100644 --- a/plugins/chai_http.md +++ b/plugins/chai_http.md @@ -32,6 +32,14 @@ var chai = require('chai') chai.use(chaiHttp); ``` +To use Chai HTTP with import +```js +import * as chai from 'chai'; +import chaiHttp from 'chai-http'; +chai.use(chaiHttp); +``` + + To use Chai HTTP on a web page, just include the [`dist/chai-http.js`](dist/chai-http.js) file: ```html