mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
test for system group rename
This commit is contained in:
@@ -315,6 +315,15 @@ describe('Groups', function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('should fail if system groups is being renamed', function (done) {
|
||||
Groups.update('administrators', {
|
||||
name: 'administrators_fail',
|
||||
}, function (err) {
|
||||
assert.equal(err.message, '[[error:not-allowed-to-rename-system-group]]');
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('.destroy()', function () {
|
||||
|
||||
Reference in New Issue
Block a user