fix: parseInt tids

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 0c81642997
commit 162ebacf5b

@ -1168,7 +1168,7 @@ describe('Post\'s', () => {
], globalModUid, { mainTid: result2.tid }); ], globalModUid, { mainTid: result2.tid });
let postData = await posts.getQueuedPosts(); let postData = await posts.getQueuedPosts();
postData = postData.filter(p => p.data.tid === result2.tid); postData = postData.filter(p => parseInt(p.data.tid, 10) === parseInt(result2.tid, 10));
assert.strictEqual(postData.length, 1); assert.strictEqual(postData.length, 1);
assert.strictEqual(postData[0].data.content, 'the moved queued post'); assert.strictEqual(postData[0].data.content, 'the moved queued post');
assert.strictEqual(postData[0].data.tid, result2.tid); assert.strictEqual(postData[0].data.tid, result2.tid);

Loading…
Cancel
Save