Skip to content

Commit

Permalink
Update ThemerTests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Aug 14, 2022
1 parent 59ac7dc commit 8b5b837
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Clocker/ClockerUnitTests/ThemerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ class ThemerTests: XCTestCase {
}

private func testSubject(subject: Themer, withExpectatations expectations: ThemeExpectations) {
// Symbol images were introduced in 11.0; Clocker still supports 10.13+ so few asserts below that rely on symbol images will fail.
let eligibleOSVersion = ProcessInfo.processInfo.isOperatingSystemAtLeast(OperatingSystemVersion(majorVersion: 11, minorVersion: 0, patchVersion: 0))

XCTAssertEqual(subject.sliderKnobColor(), expectations.expectedSliderKnobColor)
XCTAssertEqual(subject.sliderRightColor(), expectations.expectedSliderRightColor)
XCTAssertEqual(subject.mainBackgroundColor(), expectations.expectedBackgroundColor)
Expand Down

0 comments on commit 8b5b837

Please sign in to comment.