Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Aug 25, 2021
1 parent 0fcf399 commit 858c8b0
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.jetbrains.changelog.tasks

import org.jetbrains.changelog.BaseTest
import org.jetbrains.changelog.ChangelogPluginConstants.PATCH_CHANGELOG_TASK_NAME
import org.jetbrains.changelog.exceptions.MissingReleaseNoteException
import org.jetbrains.changelog.exceptions.MissingVersionException
import java.io.File
import java.text.SimpleDateFormat
Expand Down Expand Up @@ -30,7 +29,6 @@ class PatchChangelogTaskTest : BaseTest() {
plugins {
id 'org.jetbrains.changelog'
}
changelog {
version = "1.0.0"
}
Expand Down Expand Up @@ -182,16 +180,7 @@ class PatchChangelogTaskTest : BaseTest() {
extension.get(version)
}

assertTrue(
result.output.contains(
"* What went wrong:\n" +
"Execution failed for task ':$PATCH_CHANGELOG_TASK_NAME'.\n" +
"> ${MissingReleaseNoteException::class.qualifiedName}: " +
":$PATCH_CHANGELOG_TASK_NAME task requires release note to be provided. " +
"Add '## ${extension.unreleasedTerm.get()}' section header to your changelog file: " +
"'${File(extension.path.get()).canonicalPath}' or provide it using '--release-note' CLI option."
)
)
assertTrue(result.output.contains(":$PATCH_CHANGELOG_TASK_NAME task requires release note to be provided."))
}

@Test
Expand Down

0 comments on commit 858c8b0

Please sign in to comment.