remove /user from profile route

This commit is contained in:
Girish Ramakrishnan
2018-05-13 21:52:48 -07:00
parent d384284ec8
commit a1020ec6b8
7 changed files with 39 additions and 40 deletions

View File

@@ -127,7 +127,7 @@ describe('Users API', function () {
// stash for later use
token = res.body.token;
superagent.get(SERVER_URL + '/api/v1/user/profile').query({ access_token: token }).end(function (error, result) {
superagent.get(SERVER_URL + '/api/v1/profile').query({ access_token: token }).end(function (error, result) {
expect(error).to.eql(null);
expect(result.status).to.equal(200);
@@ -703,7 +703,7 @@ describe('Users API', function () {
});
it('can get profile of user with pre-set password', function (done) {
superagent.get(SERVER_URL + '/api/v1/user/profile')
superagent.get(SERVER_URL + '/api/v1/profile')
.query({ access_token: token })
.end(function (err, res) {
expect(res.statusCode).to.equal(200);