File tree 2 files changed +7
-1
lines changed
PackageTests/JS/JsSources 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Test.Cabal.Prelude
2
2
3
3
main = setupAndCabalTest $ do
4
4
skipUnlessGhcVersion " >= 9.6"
5
- skipUnless =<< isJavaScript
5
+ skipUnlessJavaScript
6
6
7
7
res <- cabal' " v2-run" [" demo" ]
8
8
assertOutputContains " Hello JS!" res
Original file line number Diff line number Diff line change @@ -889,6 +889,12 @@ skipUnlessGhcVersion range = skipUnless ("needs ghc " ++ range) =<< isGhcVersion
889
889
skipIfGhcVersion :: String -> TestM ()
890
890
skipIfGhcVersion range = skipUnless (" incompatible with ghc " ++ range) =<< isGhcVersion range
891
891
892
+ skipUnlessJavaScript :: TestM ()
893
+ skipUnlessJavaScript = skipUnless " needs the JavaScript backend" =<< isJavaScript
894
+
895
+ skipIfJavaScript :: TestM ()
896
+ skipIfJavaScript = skipIf " incompatible with the JavaScript backend" =<< isJavaScript
897
+
892
898
isWindows :: TestM Bool
893
899
isWindows = return (buildOS == Windows )
894
900
You can’t perform that action at this time.
0 commit comments