remove more parseInts

This commit is contained in:
Barış Soner Uşaklı
2018-10-23 21:36:00 -04:00
parent a228dc2de9
commit 537b7ff7e8
9 changed files with 25 additions and 38 deletions

View File

@@ -685,7 +685,7 @@ describe('Topic\'s', function () {
var topic;
var i;
for (i = 0; i < topics.length; i += 1) {
if (parseInt(topics[i].tid, 10) === parseInt(newTid, 10)) {
if (topics[i].tid === parseInt(newTid, 10)) {
assert.equal(false, topics[i].unread, 'ignored topic was marked as unread in recent list');
return done();
}
@@ -1384,7 +1384,7 @@ describe('Topic\'s', function () {
topics.getUnreadTids({ cid: 0, uid: adminUid }, next);
},
function (unreadTids, next) {
assert(!unreadTids.includes(parseInt(topic.tid, 10)));
assert(!unreadTids.includes(topic.tid));
User.blocks.remove(blockedUid, adminUid, next);
},
], done);