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
+2 -2
View File
@@ -372,7 +372,7 @@ describe('Clients', function () {
setup,
function (callback) {
superagent.get(SERVER_URL + '/api/v1/user/profile')
superagent.get(SERVER_URL + '/api/v1/profile')
.query({ access_token: token })
.end(function (error, result) {
expect(result).to.be.ok();
@@ -536,7 +536,7 @@ describe('Clients', function () {
expect(result.statusCode).to.equal(204);
// further calls with this token should not work
superagent.get(SERVER_URL + '/api/v1/user/profile')
superagent.get(SERVER_URL + '/api/v1/profile')
.query({ access_token: token })
.end(function (error, result) {
expect(result.statusCode).to.equal(401);