Skip to content

Commit 80b4efb

Browse files
cornelius-kkeithamus
authored andcommitted
docs: add chai.expect usage to readme (#173)
expect function was being used in readme examples without ever explicitly defining expect
1 parent 2604c3b commit 80b4efb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ chai.request(app)
118118

119119
#### Dealing with the response - traditional
120120

121+
In the following examples we use Chai's Expect assertion library:
122+
123+
```js
124+
var expect = chai.expect;
125+
```
126+
121127
To make the request and assert on its response, the `end` method can be used:
122128

123129
```js

0 commit comments

Comments
 (0)