Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Mar 27, 2024
1 parent 9303885 commit 8e1352f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ describe('Channel count unread', function () {
expect(channel._countMessageAsUnread({ user: { id: 'unmute' } })).to.be.ok;
});

it('_countMessageAsUnread should return false for muted channel', function () {
it('_countMessageAsUnread should return true for muted channel', function () {
client.mutedChannels = [{ user, channel }];
expect(channel._countMessageAsUnread({ user: { id: 'unmute' } })).not.to.be.ok;
expect(channel._countMessageAsUnread({ user: { id: 'unmute' } })).to.be.ok;
});

it('_countMessageAsUnread should return true for unmuted channel', function () {
Expand Down

0 comments on commit 8e1352f

Please sign in to comment.