From 1bdd7262010387818c22d1d9a00ae0d8f4fff8db Mon Sep 17 00:00:00 2001 From: Alexander Goussas Date: Fri, 24 Oct 2025 15:28:26 -0500 Subject: [PATCH] tests: add test to make sure we support the "Unreleased" version --- .../changelog/parser/MarkdownChangelogParserTests.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/changelog-plugin/src/test/kotlin/io/github/aloussase/changelog/parser/MarkdownChangelogParserTests.kt b/changelog-plugin/src/test/kotlin/io/github/aloussase/changelog/parser/MarkdownChangelogParserTests.kt index e9c6dc8..cf5a92b 100644 --- a/changelog-plugin/src/test/kotlin/io/github/aloussase/changelog/parser/MarkdownChangelogParserTests.kt +++ b/changelog-plugin/src/test/kotlin/io/github/aloussase/changelog/parser/MarkdownChangelogParserTests.kt @@ -107,4 +107,15 @@ class MarkdownChangelogParserTests { assertThat(result.exceptionOrNull()?.message, containsString("Expected a valid commit")) } + @Test + fun givenDocumentWithReleaseNameUnreleasedWhenParseIsCalledThenDocumentIsParsedCorrectly() { + val doc = "# Changelog\n\n## [Unreleased]\n- LOYMAR-123: first commit (johndoe@gmail.com)" + val parser = MarkdownChangelogParser() + + val result = parser.parse(doc) + + assertThat(result.isSuccess, equalTo(true)) + assertThat(result.getOrThrow().entries.first().release, equalTo("Unreleased")) + } + } -- 2.43.0