another test for user profile

This commit is contained in:
barisusakli
2016-11-10 17:11:26 +03:00
parent 7241c42302
commit a3bff8d320

View File

@@ -503,6 +503,15 @@ describe('User', function () {
});
});
it('should load profile page', function (done) {
request(nconf.get('url') + '/api/user/updatedagain', {jar: jar, json: true}, function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 200);
assert(body);
done();
});
});
it('should load settings page', function (done) {
request(nconf.get('url') + '/api/user/updatedagain/settings', {jar: jar, json: true}, function (err, res, body) {
assert.ifError(err);