diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-02-27 16:59:03 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-02-27 16:59:03 +0300 |
commit | 289d287993b4618f73ebcbc5056a5495238a5836 (patch) | |
tree | 17c282eab431e1969a4ef0917f9a52d75d0788bf /core/src/test/kotlin/TestAPI.kt | |
parent | 706d37bea00702795cb44f9378b2da743163e600 (diff) | |
download | dokka-289d287993b4618f73ebcbc5056a5495238a5836.tar.gz dokka-289d287993b4618f73ebcbc5056a5495238a5836.tar.bz2 dokka-289d287993b4618f73ebcbc5056a5495238a5836.zip |
Fix test
Diffstat (limited to 'core/src/test/kotlin/TestAPI.kt')
-rw-r--r-- | core/src/test/kotlin/TestAPI.kt | 7 |
1 files changed, 1 insertions, 6 deletions
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()) } |