Skip to content

Commit

Permalink
Fix readme test that broke with nofollow change. (#4846)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuyu committed Oct 13, 2017
1 parent 0de47a7 commit 072e820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/NuGetGallery.Facts/Services/ReadMeServiceFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void EncodesHtmlInMarkdown(string originalMd, string expectedHtml)
[Theory]
[InlineData("# Heading", "<h1>Heading</h1>")]
[InlineData("- List", "<ul><li>List</li></ul>")]
[InlineData("[text](http://www.test.com)", "<p><a href=\"http://www.test.com\">text</a></p>")]
[InlineData("[text](http://www.test.com)", "<p><a href=\"http://www.test.com\" rel=\"nofollow\">text</a></p>")]
public void ConvertsMarkdownToHtml(string originalMd, string expectedHtml)
{
Assert.Equal(expectedHtml, StripNewLines(ReadMeService.GetReadMeHtml(originalMd)));
Expand Down

0 comments on commit 072e820

Please sign in to comment.