Skip to content

Commit 20c4e38

Browse files
committed
fix: resolve XCTest compilation errors in CI
- Rename testCaseCount() to testActivationModeCaseCount() to avoid conflict with XCTest's built-in testCaseCount property - Fix hotkey.code to hotkey.keyCode matching the tuple's field name
1 parent 0225dc0 commit 20c4e38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/VocaMacTests/VocaMacTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ final class ActivationModeTests: XCTestCase {
264264
}
265265
}
266266

267-
func testCaseCount() {
267+
func testActivationModeCaseCount() {
268268
XCTAssertEqual(ActivationMode.allCases.count, 2)
269269
}
270270

@@ -292,7 +292,7 @@ final class KeyCodeReferenceTests: XCTestCase {
292292

293293
func testCommonHotKeysValid() {
294294
for hotkey in KeyCodeReference.commonHotKeys {
295-
XCTAssertGreaterThanOrEqual(hotkey.code, 0)
295+
XCTAssertGreaterThanOrEqual(hotkey.keyCode, 0)
296296
XCTAssertFalse(hotkey.name.isEmpty)
297297
}
298298
}

0 commit comments

Comments
 (0)