Skip to content

Commit

Permalink
Remove last #available in TestCase.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-at-kickstarter committed Nov 1, 2023
1 parent 1abd8f5 commit f4998ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/TestHelpers/TestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ internal class TestCase: XCTestCase {
let supportedModels = ["iPhone10,1", "iPhone10,4"] // iPhone 8
let modelKey = "SIMULATOR_MODEL_IDENTIFIER"

guard #available(iOS 15, *), supportedModels.contains(ProcessInfo().environment[modelKey] ?? "") else {
guard supportedModels.contains(ProcessInfo().environment[modelKey] ?? "") else {
fatalError("Please only test and record screenshots on an iPhone 8 simulator running iOS 15.5")
}
}
Expand Down

0 comments on commit f4998ea

Please sign in to comment.