mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 01:21:13 +01:00
fixed test for error when adding self to chat
This commit is contained in:
@@ -156,7 +156,7 @@ describe('Messaging Library', function () {
|
||||
|
||||
it('should fail to add self to room', function (done) {
|
||||
socketModules.chats.addUserToRoom({ uid: fooUid }, { roomId: roomId, username: 'foo' }, function (err) {
|
||||
assert.equal(err.message, '[[error:cant-add-self-to-chat-room]]');
|
||||
assert.equal(err.message, '[[error:cant-chat-with-yourself]]');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user