Skip to content

Commit

Permalink
NSEvent tests should be macOS only
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jan 8, 2024
1 parent 30e9e8b commit 0fff872
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/KeyCodesTests/NSEventTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import XCTest
import KeyCodes

#if os(macOS)
import Carbon.HIToolbox

final class NSEventTests: XCTestCase {
Expand All @@ -15,3 +17,4 @@ final class NSEventTests: XCTestCase {
XCTAssertEqual(event.keyModifierFlags, [.command, .numericPad])
}
}
#endif

0 comments on commit 0fff872

Please sign in to comment.