Skip to content

Commit

Permalink
Add test with unknown property in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero committed Feb 7, 2025
1 parent 97a0715 commit 3e53119
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ internal class ComponentOverridesTests {
"properties": {
"font_name": "unknown condition font"
}
},
{
"conditions": [ { "type": "selected", "other_property": "value" } ],
"properties": {
"font_name": "condition with other unknown property"
}
}
]
""".trimIndent(),
Expand Down Expand Up @@ -126,6 +132,12 @@ internal class ComponentOverridesTests {
conditions = listOf(ComponentOverride.Condition.Unsupported),
properties = PartialTextComponent(fontName = FontAlias("unknown condition font")),
),
ComponentOverride(
conditions = listOf(ComponentOverride.Condition.Selected),
properties = PartialTextComponent(
fontName = FontAlias("condition with other unknown property"),
),
)
)
)
),
Expand Down

0 comments on commit 3e53119

Please sign in to comment.