We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b1fd0c + ebd4c29 commit 77a86edCopy full SHA for 77a86ed
README.md
@@ -110,15 +110,17 @@ You can also use promises:
110
111
```js
112
describe('GET /users', function() {
113
- it('responds with json', function() {
+ it('responds with json', function(done) {
114
return request(app)
115
.get('/users')
116
.set('Accept', 'application/json')
117
.expect('Content-Type', /json/)
118
.expect(200)
119
.then(response => {
120
assert(response.body.email, 'foo@bar.com')
121
+ done();
122
})
123
+ .catch(err => done(err))
124
});
125
126
```
0 commit comments