Skip to content

Commit d6e1294

Browse files
authored
Merge pull request #142 from chaijs/vieiralucas-patch-1
Fix some bad semicolon placements at README.md
2 parents ffe1f62 + 4470f99 commit d6e1294

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ it('fails, as expected', function(done) { // <= Pass in done callback
147147
expect(res).to.have.status(123);
148148
done(); // <= Call done to signal callback end
149149
});
150-
}) ;
150+
});
151151

152152
it('succeeds silently!', function() { // <= No done callback
153153
chai.request('http://localhost:8080')
154154
.get('/')
155155
.end(function(err, res) {
156156
expect(res).to.have.status(123); // <= Test completes before this runs
157157
});
158-
}) ;
158+
});
159159
```
160160

161161
When `done` is passed in, Mocha will wait until the call to `done()`, or until
@@ -176,7 +176,7 @@ chai.request(app)
176176
})
177177
.catch(function (err) {
178178
throw err;
179-
})
179+
});
180180
```
181181

182182
__Note:__ Node.js version 0.10.x and some older web browsers do not have
@@ -195,7 +195,6 @@ if (!global.Promise) {
195195
}
196196
var chai = require('chai');
197197
chai.use(require('chai-http'));
198-
199198
```
200199

201200
#### Retaining cookies with each request
@@ -216,8 +215,8 @@ agent
216215
return agent.get('/user/me')
217216
.then(function (res) {
218217
expect(res).to.have.status(200);
219-
})
220-
})
218+
});
219+
});
221220
```
222221

223222
## Assertions

0 commit comments

Comments
 (0)