Skip to content

Node.js based forum software built for the modern web

another test for user profile

barisusaklia3bff8d320b2
diff --git a/test/user.js b/test/user.js
index 796ef4b3ac..b60caca663 100644
--- a/test/user.js
+++ b/test/user.js
@@ -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);