Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('should receive a JWT on Successful Registration', function(done){
- chai.request(app)
- .post('/api/v1/auth/signup')
- .send({
- name: 'Test',
- email: `test@tracker.com`,
- password: 'testpwd'
- })
- .end(function(err, res){
- res.should.have.status(201);
- res.body.should.have.property('token')
- .which.is.a('string');
- done();
- });
- });
Add Comment
Please, Sign In to add comment