Skip to content

Commit 085447a

Browse files
committed
Fix Swift 5.9 test compatibility
1 parent 12cd0a6 commit 085447a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/CapsomniaTests/SettingsWindowControllerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ final class SettingsWindowControllerTests: XCTestCase {
159159
XCTAssertEqual(advancedWindow.title, strings.advancedSettings)
160160

161161
let visibleLabels: [NSTextField] = visibleDescendants(of: contentView)
162-
let renderedText = Set(visibleLabels.map(\NSTextField.stringValue))
162+
let renderedText = Set(visibleLabels.map { $0.stringValue })
163163
for expected in [
164164
strings.advancedSettings,
165165
strings.preferencesHeading.uppercased(),

0 commit comments

Comments
 (0)