zulip/frontend_tests/node_tests/pm_conversations.js

15 lines
356 B
JavaScript

var pmc = zrequire('pm_conversations');
(function test_partners() {
var user1_id = 1;
var user2_id = 2;
var user3_id = 3;
pmc.set_partner(user1_id);
pmc.set_partner(user3_id);
assert.equal(pmc.is_partner(user1_id), true);
assert.equal(pmc.is_partner(user2_id), false);
assert.equal(pmc.is_partner(user3_id), true);
}());