Skip to content

Commit

Permalink
fix: parseInt tids
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 31, 2021
1 parent 0c81642 commit 162ebac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ describe('Post\'s', () => {
], globalModUid, { mainTid: result2.tid });

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[0].data.content, 'the moved queued post');
assert.strictEqual(postData[0].data.tid, result2.tid);
Expand Down

0 comments on commit 162ebac

Please sign in to comment.