From 0fff8724308969c504984f81e4751850f47704c9 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:06:36 -0500 Subject: [PATCH] NSEvent tests should be macOS only --- Tests/KeyCodesTests/NSEventTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/KeyCodesTests/NSEventTests.swift b/Tests/KeyCodesTests/NSEventTests.swift index 9b90657..6004122 100644 --- a/Tests/KeyCodesTests/NSEventTests.swift +++ b/Tests/KeyCodesTests/NSEventTests.swift @@ -1,5 +1,7 @@ import XCTest import KeyCodes + +#if os(macOS) import Carbon.HIToolbox final class NSEventTests: XCTestCase { @@ -15,3 +17,4 @@ final class NSEventTests: XCTestCase { XCTAssertEqual(event.keyModifierFlags, [.command, .numericPad]) } } +#endif