Fix test, misc

This commit is contained in:
Peter Jaszkowiak
2017-02-23 17:29:08 -07:00
parent 3e562ceb83
commit ee9d7584e4
3 changed files with 6 additions and 4 deletions

View File

@@ -794,7 +794,7 @@ describe('Groups', function () {
helpers.uploadFile(nconf.get('url') + '/api/groups/uploadpicture', logoPath, { params: JSON.stringify({ groupName: 'Test' }) }, jar, csrf_token, function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 500);
assert(/\[\[error:no-privileges\]\]/.test(body));
assert.equal(body.error, '[[error:no-privileges]]');
done();
});
});