Guest User

Untitled

a guest
Jul 23rd, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. it('should receive a JWT on Successful Registration', function(done){
  2. chai.request(app)
  3. .post('/api/v1/auth/signup')
  4. .send({
  5. name: 'Test',
  6. email: `test@tracker.com`,
  7. password: 'testpwd'
  8. })
  9. .end(function(err, res){
  10. res.should.have.status(201);
  11. res.body.should.have.property('token')
  12. .which.is.a('string');
  13. done();
  14. });
  15. });
Add Comment
Please, Sign In to add comment