Skip to content

Commit f99fa5b

Browse files
authored
Fix Tests (#343)
* Fix tests * fix
1 parent 6d4c40d commit f99fa5b

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

Tests/ComposableArchitectureTests/WithViewStoreAppTest.swift

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,23 @@ import SwiftUI
1717

1818
var body: some Scene {
1919
WithViewStore(self.store) { viewStore in
20-
WindowGroup {
21-
EmptyView()
22-
}
23-
.commands {
24-
CommandMenu("Commands") {
25-
Button("Increment") {
26-
viewStore.send(())
20+
#if os(iOS) || os(macOS)
21+
WindowGroup {
22+
EmptyView()
23+
}
24+
.commands {
25+
CommandMenu("Commands") {
26+
Button("Increment") {
27+
viewStore.send(())
28+
}
29+
.keyboardShortcut("+")
2730
}
28-
.keyboardShortcut("+")
2931
}
30-
}
32+
#else
33+
WindowGroup {
34+
EmptyView()
35+
}
36+
#endif
3137
}
3238
}
3339
}

0 commit comments

Comments
 (0)