Created
July 3, 2014 12:33
-
-
Save thebergamo/49431ea8e09ed6d0d66b to your computer and use it in GitHub Desktop.
Listar Todos Usuários
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('GET /api/users', function(){ | |
it('recovery users list', function(done){ | |
request('http://localhost:8080/api/') | |
.get('users') | |
.set('Content-Type', 'application/json') | |
.expect('Content-Type', /json/) | |
.expect(function(res){ | |
if(('error' in res.body)) return "Error here!"; | |
}) | |
.expect(200, done); | |
}); | |
it('alias recovery user list - alias', function(done){ | |
request('http://localhost:8080/api/') | |
.get('user') | |
.set('Content-Type', 'application/json') | |
.expect('Content-Type', /json/) | |
.expect(function(res){ | |
if(('error' in res.body)) return "Error here!"; | |
}) | |
.expect(200, done); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment