Skip to content

Commit 4254a18

Browse files
committed
bugfix: correct expected and actual values
1 parent 81589a0 commit 4254a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/html-internal-link-parser.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test('html link parser grabs multiple href, ignoring external links', t => {
99
const parser = new HTMLLinkParser(new DeadLinks());
1010
const links = parser.find('<p>Hello world <a href="/home">this is a link home</a> and <a href="/somewhere">this is a link somewhere</a></p><p>The following link should be ignored <a href="https://www.example.com/">example.com</a>.</p>', pageDirectory);
1111

12-
t.is(2, links.length);
12+
t.is(links.length, 2);
1313

1414
const expectedLinks = ['/home', '/somewhere'];
1515
for (const link of links) {
@@ -21,7 +21,7 @@ test('html link parser grabs multiple href, ignoring external links', t => {
2121
expectedLinks.splice(idx, 1);
2222
}
2323

24-
t.is(0, expectedLinks.length);
24+
t.is(expectedLinks.length, 0);
2525
});
2626

2727
test('html link parser ignores href within code blocks', t => {

0 commit comments

Comments
 (0)