mirror of https://github.com/zulip/zulip.git
node: Add test for updating bot_owner_id and enable user_events test suite.
Reverts the commit 4442509ec3
This commit is contained in:
parent
55bf44152a
commit
3462db3ecc
|
@ -170,4 +170,17 @@ run_test('updates', () => {
|
|||
|
||||
user_events.update_person({user_id: me.user_id, delivery_email: 'you@example.org'});
|
||||
assert(updated);
|
||||
|
||||
var test_bot = {
|
||||
email: 'test-bot@example.com',
|
||||
user_id: 35,
|
||||
full_name: 'Test Bot',
|
||||
is_bot: true,
|
||||
bot_owner_id: isaac.id,
|
||||
};
|
||||
people.add(test_bot);
|
||||
|
||||
user_events.update_person({user_id: test_bot.user_id, bot_owner_id: me.user_id});
|
||||
person = people.get_by_email(test_bot.email);
|
||||
assert.equal(person.bot_owner_id, me.user_id);
|
||||
});
|
||||
|
|
|
@ -83,8 +83,7 @@ enforce_fully_covered = {
|
|||
'static/js/typing_data.js',
|
||||
'static/js/typing_status.js',
|
||||
'static/js/unread.js',
|
||||
# Temporarily removed due to a partial merge.
|
||||
# 'static/js/user_events.js',
|
||||
'static/js/user_events.js',
|
||||
'static/js/user_groups.js',
|
||||
'static/js/user_pill.js',
|
||||
'static/js/user_search.js',
|
||||
|
|
Loading…
Reference in New Issue