adjust unit tests to new link format
This commit is contained in:
parent
5450a431cf
commit
8fcc321eb6
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ describe('Helper', function () {
|
||||||
let result = e.html();
|
let result = e.html();
|
||||||
clean();
|
clean();
|
||||||
url = $('<div />').text(url).html();
|
url = $('<div />').text(url).html();
|
||||||
return $('<div />').text(prefix).html() + '<a href="' + url + '" rel="nofollow noopener noreferrer">' + url + '</a>' + $('<div />').text(postfix).html() === result;
|
return $('<div />').text(prefix).html() + '<a href="' + url + '" target="_blank" rel="nofollow noopener noreferrer">' + url + '</a>' + $('<div />').text(postfix).html() === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
jsc.property(
|
jsc.property(
|
||||||
|
@ -145,7 +145,7 @@ describe('Helper', function () {
|
||||||
let result = e.html();
|
let result = e.html();
|
||||||
clean();
|
clean();
|
||||||
url = $('<div />').text(url).html();
|
url = $('<div />').text(url).html();
|
||||||
return $('<div />').text(prefix).html() + '<a href="' + url + '" rel="nofollow noopener noreferrer">' + url + '</a>' + $('<div />').text(postfix).html() === result;
|
return $('<div />').text(prefix).html() + '<a href="' + url + '" target="_blank" rel="nofollow noopener noreferrer">' + url + '</a>' + $('<div />').text(postfix).html() === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue