From 289d287993b4618f73ebcbc5056a5495238a5836 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Mon, 27 Feb 2017 16:59:03 +0300 Subject: Fix test --- core/src/test/kotlin/TestAPI.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'core/src/test/kotlin/TestAPI.kt') diff --git a/core/src/test/kotlin/TestAPI.kt b/core/src/test/kotlin/TestAPI.kt index 09a346cf..19eb29d5 100644 --- a/core/src/test/kotlin/TestAPI.kt +++ b/core/src/test/kotlin/TestAPI.kt @@ -162,12 +162,7 @@ fun verifyModelOutput(it: DocumentationModule, val output = StringBuilder() outputGenerator(it, output) val ext = outputExtension.removePrefix(".") - val expectedFileContent = File(sourcePath.replaceAfterLast(".", ext, sourcePath + "." + ext)).readText() - val expectedOutput = - if (ext.equals("html", true)) - expectedFileContent.lines().joinToString(separator = "\n", transform = String::trim) - else - expectedFileContent + val expectedOutput = File(sourcePath.replaceAfterLast(".", ext, sourcePath + "." + ext)).readText() assertEqualsIgnoringSeparators(expectedOutput, output.toString()) } -- cgit