Skip to content

Commit

Permalink
Fix tests for watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Naumov committed Dec 25, 2022
1 parent 22a48ce commit fe0a15f
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import XCTest
import SwiftUI
@testable import ViewInspector

@available(iOS 13.0, macOS 10.15, tvOS 13.0, *)
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 9.0, *)
final class TransitiveModifiersTests: XCTestCase {

func testHiddenTransitivity() throws {
Expand All @@ -23,7 +23,6 @@ final class TransitiveModifiersTests: XCTestCase {
}

@available(tvOS, unavailable)
@available(watchOS, unavailable)
func testFlipsRightToLeftInheritance() throws {
let sut = try FlipsRightToLeftTestView().inspect()
if #available(iOS 14.0, tvOS 14.0, *) {
Expand Down Expand Up @@ -111,9 +110,8 @@ private struct TestDisabledView: View {
}
}

@available(iOS 13.0, macOS 10.15, *)
@available(iOS 13.0, macOS 10.15, watchOS 9.0, *)
@available(tvOS, unavailable)
@available(watchOS, unavailable)
private struct FlipsRightToLeftTestView: View {
var body: some View {
VStack {
Expand Down Expand Up @@ -161,9 +159,8 @@ private struct AllowsHitTestingTestView: View {
}
}

@available(iOS 13.0, macOS 10.15, *)
@available(iOS 13.0, macOS 10.15, watchOS 9.0, *)
@available(tvOS, unavailable)
@available(watchOS, unavailable)
private struct TestLabelsHiddenView: View {
var body: some View {
VStack {
Expand Down

0 comments on commit fe0a15f

Please sign in to comment.