From 4bdd2013bda6544093147796446416b122d81514 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Wed, 28 Aug 2024 06:54:17 -0400 Subject: [PATCH] Fix Xcode tests --- Tests/ThemeParkTests/XcodeThemeTests.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Tests/ThemeParkTests/XcodeThemeTests.swift b/Tests/ThemeParkTests/XcodeThemeTests.swift index b3313b6..793e870 100644 --- a/Tests/ThemeParkTests/XcodeThemeTests.swift +++ b/Tests/ThemeParkTests/XcodeThemeTests.swift @@ -17,18 +17,19 @@ final class XcodeThemeTests: XCTestCase { func testSemanticQueries() throws { let url = try XCTUnwrap(Bundle.module.url(forResource: "Default (Light)", withExtension: "xccolortheme", subdirectory: "Resources")) let theme = try XcodeTheme(contentsOf: url) + let font = PlatformFont.systemFont(ofSize: 10.0) XCTAssertEqual( theme.style(for: .editor(.background)), - Style(color: PlatformColor(hex: "#ffffff")!) + Style(color: PlatformColor(hex: "#ffffff")!, font: font) ) XCTAssertEqual( theme.style(for: .syntax(.text)), - Style(color: PlatformColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.85)) + Style(color: PlatformColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.85), font: font) ) XCTAssertEqual( theme.style(for: .syntax(.comment(nil))), - Style(color: PlatformColor(red: 0.36526, green: 0.421879, blue: 0.475154, alpha: 1.0)) + Style(color: PlatformColor(red: 0.36526, green: 0.421879, blue: 0.475154, alpha: 1.0), font: font) ) XCTAssertEqual( theme.style(for: .gutter(.background)),