Skip to content

Commit e79ac50

Browse files
Fixed a bug that didn't account for missing results
1 parent 63dc96a commit e79ac50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/utils/compare.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ function compare (matches, urls) {
4545
/**
4646
* Formats a match for easy visual diffing
4747
*/
48-
function format ({ tag, prop, url }) {
49-
if (prop) {
48+
function format ({ tag, prop, url } = {}) {
49+
if (!tag) {
50+
return "MISSING";
51+
}
52+
else if (prop) {
5053
return `<${tag} ${prop}="${url}">`;
5154
}
5255
else {

0 commit comments

Comments
 (0)