Added comment for clarity

This commit is contained in:
Unmesh Gundecha
2021-02-21 21:43:36 +08:00
parent 6e0a747058
commit 576d1ed48c

View File

@@ -52,7 +52,10 @@ describe('Checklist', function () {
});
it('has unique urls', function () {
var items = srcMd.match(/(?<=\* \[*.*\]\()(.*?)(?=\))/g);
// this link appears twice hence filtering it
var items = arrayRemove(items, 'https://github.com/abhivaikar/howtheytest');
var hasDuplicate = items.some((val, i) => items.indexOf(val) !== i);
expect(hasDuplicate).to.equal(false, 'List has duplicate link');
});