Added test for adding target=_blank to autolinks
This commit is contained in:
parent
1225517c51
commit
763f8465eb
1 changed files with 3 additions and 1 deletions
|
|
@ -40,7 +40,9 @@ describe("app.helpers.textFormatter", function(){
|
|||
var wrapper = $("<div>").html(formattedText);
|
||||
|
||||
_.each(links, function(link) {
|
||||
expect(wrapper.find("a[href='" + link + "']").text()).toContain(link)
|
||||
var linkElement = wrapper.find("a[href='" + link + "']");
|
||||
expect(linkElement.text()).toContain(link);
|
||||
expect(linkElement.attr("target")).toContain("_blank");
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue