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