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
commit d81c9da988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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