Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('should respond to a GET request at /api/keywords/', function (done) {
- request.get(
- {
- 'url': 'http://localhost:8080/api/keywords/',
- 'json': true
- },
- function (err, res, body) {
- expect(res.statusCode).toBe(200);
- expect(body.foo).toEqual('bar');
- done();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement