Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Dec 18, 2024
1 parent c1acefc commit c19c9d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/automerge-unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ end
<!-- END RELEASE NOTES -->
"""
body_bad_no_notes = ""

@test AutoMerge.meets_breaking_explanation_check(["BREAKING"], body_good)[1]
@test AutoMerge.meets_breaking_explanation_check(["BREAKING"], body_good_changelog)[1]
@test !AutoMerge.meets_breaking_explanation_check(["BREAKING"], body_bad)[1]
@test !AutoMerge.meets_breaking_explanation_check(["BREAKING"], body_bad_no_notes)[1]
breaking_label = GitHub.Label(; name="BREAKING")
@test AutoMerge.meets_breaking_explanation_check([breaking_label], body_good)[1]
@test AutoMerge.meets_breaking_explanation_check([breaking_label], body_good_changelog)[1]
@test !AutoMerge.meets_breaking_explanation_check([breaking_label], body_bad)[1]
@test !AutoMerge.meets_breaking_explanation_check([breaking_label], body_bad_no_notes)[1]

# Maybe this should fail as the label isn't applied by JuliaRegistrator, so the version isn't breaking?
@test AutoMerge.meets_breaking_explanation_check([], body_good)[1]
Expand Down

0 comments on commit c19c9d2

Please sign in to comment.