mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
fix group update text
This commit is contained in:
@@ -499,7 +499,7 @@ var async = require('async'),
|
||||
deleted: '0',
|
||||
hidden: data.hidden || '0',
|
||||
system: system ? '1' : '0',
|
||||
'private': data.private || '1'
|
||||
private: data.private || '1'
|
||||
},
|
||||
tasks = [
|
||||
async.apply(db.sortedSetAdd, 'groups:createtime', now, data.name),
|
||||
|
||||
@@ -186,6 +186,9 @@ describe('Groups', function() {
|
||||
});
|
||||
|
||||
describe('.update()', function() {
|
||||
before(function(done) {
|
||||
Groups.join('foobar', 1, done);
|
||||
});
|
||||
it('should change an aspect of a group', function(done) {
|
||||
Groups.update('foo', {
|
||||
description: 'baz'
|
||||
|
||||
Reference in New Issue
Block a user