Skip to content

Commit

Permalink
tested not overwriting duplicate properties
Browse files Browse the repository at this point in the history
  • Loading branch information
yonaskolb committed Jun 6, 2018
1 parent 4a34777 commit 9a8d628
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/ThemeDecodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ class ThemeDecodingTests: XCTestCase {
main:
styles: [primary]
color: green
prop: red
primary:
tintColor: red
header:
styles: [main]
textColor: blue
prop: orange
"""

let theme = try Theme(string: string)
Expand All @@ -59,11 +61,13 @@ class ThemeDecodingTests: XCTestCase {
styles: [
try StyleSelector(selector: "header", style: Style(properties: [
StylePropertyValue(name: "color", value: "green"),
StylePropertyValue(name: "prop", value: "orange"),
StylePropertyValue(name: "textColor", value: "blue"),
StylePropertyValue(name: "tintColor", value: "red"),
])),
try StyleSelector(selector: "main", style: Style(properties: [
StylePropertyValue(name: "color", value: "green"),
StylePropertyValue(name: "prop", value: "red"),
StylePropertyValue(name: "tintColor", value: "red"),
])),
try StyleSelector(selector: "primary", style: Style(properties: [
Expand Down

0 comments on commit 9a8d628

Please sign in to comment.