Merge pull request #21 from upgundecha/new-additions

Added comment for clarity
This commit is contained in:
Unmesh Gundecha
2021-02-21 21:44:25 +08:00
committed by GitHub

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');
});