mirror of
https://github.com/upgundecha/howtheysre.git
synced 2026-02-05 00:09:09 +00:00
Added comment for clarity
This commit is contained in:
parent
6e0a747058
commit
576d1ed48c
@ -52,7 +52,10 @@ describe('Checklist', function () {
|
|||||||
});
|
});
|
||||||
it('has unique urls', function () {
|
it('has unique urls', function () {
|
||||||
var items = srcMd.match(/(?<=\* \[*.*\]\()(.*?)(?=\))/g);
|
var items = srcMd.match(/(?<=\* \[*.*\]\()(.*?)(?=\))/g);
|
||||||
|
|
||||||
|
// this link appears twice hence filtering it
|
||||||
var items = arrayRemove(items, 'https://github.com/abhivaikar/howtheytest');
|
var items = arrayRemove(items, 'https://github.com/abhivaikar/howtheytest');
|
||||||
|
|
||||||
var hasDuplicate = items.some((val, i) => items.indexOf(val) !== i);
|
var hasDuplicate = items.some((val, i) => items.indexOf(val) !== i);
|
||||||
expect(hasDuplicate).to.equal(false, 'List has duplicate link');
|
expect(hasDuplicate).to.equal(false, 'List has duplicate link');
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user