mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
Fix Markdown test
The markdown api adds a trailing newline if there isn't already one. It also converts \r\n to \n.
This commit is contained in:
@@ -31,9 +31,9 @@ public class MiscellaneousClientTests
|
||||
Credentials = Helper.Credentials
|
||||
};
|
||||
|
||||
var result = await github.Miscellaneous.RenderRawMarkdown("This is a **test**");
|
||||
var result = await github.Miscellaneous.RenderRawMarkdown("This is\r\n a **test**");
|
||||
|
||||
Assert.Equal("<p>This is a <strong>test</strong></p>", result);
|
||||
Assert.Equal("<p>This is\n a <strong>test</strong></p>\n", result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user