Skip to content

Commit 9a8d628

Browse files
committed
tested not overwriting duplicate properties
1 parent 4a34777 commit 9a8d628

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/ThemeDecodingTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ class ThemeDecodingTests: XCTestCase {
4646
main:
4747
styles: [primary]
4848
color: green
49+
prop: red
4950
primary:
5051
tintColor: red
5152
header:
5253
styles: [main]
5354
textColor: blue
55+
prop: orange
5456
"""
5557

5658
let theme = try Theme(string: string)
@@ -59,11 +61,13 @@ class ThemeDecodingTests: XCTestCase {
5961
styles: [
6062
try StyleSelector(selector: "header", style: Style(properties: [
6163
StylePropertyValue(name: "color", value: "green"),
64+
StylePropertyValue(name: "prop", value: "orange"),
6265
StylePropertyValue(name: "textColor", value: "blue"),
6366
StylePropertyValue(name: "tintColor", value: "red"),
6467
])),
6568
try StyleSelector(selector: "main", style: Style(properties: [
6669
StylePropertyValue(name: "color", value: "green"),
70+
StylePropertyValue(name: "prop", value: "red"),
6771
StylePropertyValue(name: "tintColor", value: "red"),
6872
])),
6973
try StyleSelector(selector: "primary", style: Style(properties: [

0 commit comments

Comments
 (0)