Added test for adding target=_blank to autolinks

This commit is contained in:
Alex Harrison 2012-02-12 22:43:52 +01:00
parent 1225517c51
commit 763f8465eb

View file

@ -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");
})
})
})