Skip to content

Commit

Permalink
Corrected linting violation in BadgeModifierTests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgedSword committed Jan 30, 2025
1 parent c6d8ab9 commit 9685c07
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Tests/IgniteTesting/Modifiers/BadgeModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ struct BadgeModifierTests {
func badgeModifierForInlineHTML() async throws {
let element = Text("Notifications").badge(Badge("3"))
let output = element.render()
#expect(output == "<li class=\"align-items-center d-flex justify-content-between\"><p>Notifications</p><span class=\"badge rounded-pill\">3</span></li>")
#expect(
output == "<li class=\"align-items-center d-flex justify-content-between\">" +
"<p>Notifications</p><span class=\"badge rounded-pill\">3</span></li>"
)
}

@Test("Badge Modifier for ListItem")
Expand All @@ -27,6 +30,9 @@ struct BadgeModifierTests {
Text("Messages")
}.badge(Badge("5"))
let output = element.render()
#expect(output == "<li class=\"align-items-center d-flex justify-content-between\"><p>Messages</p></li>")
#expect(
output == "<li class=\"align-items-center d-flex justify-content-between\">" +
"<p>Messages</p></li>"
)
}
}

0 comments on commit 9685c07

Please sign in to comment.