From 24f6d4dd8762166eb648a63a2f712b0140e32991 Mon Sep 17 00:00:00 2001 From: Haacked Date: Fri, 7 Nov 2014 14:50:08 -0800 Subject: [PATCH] Fix Markdown test The markdown api adds a trailing newline if there isn't already one. It also converts \r\n to \n. --- Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs b/Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs index c415060d..f5f46b99 100644 --- a/Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs +++ b/Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs @@ -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("

This is a test

", result); + Assert.Equal("

This is\n a test

\n", result); } } }