diff --git a/bower.json b/bower.json index a2c31e8..6fe3962 100644 --- a/bower.json +++ b/bower.json @@ -14,10 +14,10 @@ "output" ], "dependencies": { - "purescript-console": "^3.0.0" + "purescript-console": "^4.2.0" }, "devDependencies": { - "purescript-psci-support": "^3.0.0", - "purescript-test-unit": "^11.0.0" + "purescript-psci-support": "^4.0.0", + "purescript-test-unit": "^14.0.0" } } diff --git a/package.json b/package.json index e516301..ffd3b51 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "test": "pulp build -I test -- --censor-lib --strict --stash && pulp test" }, "devDependencies": { - "purescript-psa": "^0.4.0", + "purescript-psa": "^0.7.3", "rimraf": "^2.5.0" } } diff --git a/test/Conditional.purs b/test/Conditional.purs index 4949dca..e2afff4 100644 --- a/test/Conditional.purs +++ b/test/Conditional.purs @@ -2,13 +2,10 @@ module Test.Conditional where import Prelude ((&&), (||), ($), (+), (*), Unit, discard) import Conditional ((?)) -import Control.Monad.Eff (Eff) -import Control.Monad.Aff.AVar (AVAR) -import Control.Monad.Eff.Console (CONSOLE) +import Effect (Effect) import Test.Unit (describe, it) import Test.Unit.Main (runTest) import Test.Unit.Assert (shouldEqual) -import Test.Unit.Console (TESTOUTPUT) x :: Int @@ -26,9 +23,8 @@ y' = if (false && true) then (3 + 5) else (5 * 2) -main :: forall e - . Eff (console :: CONSOLE, testOutput :: TESTOUTPUT, avar :: AVAR | e) Unit -main = runTest do +testConditional :: Effect Unit +testConditional = runTest do describe "ifelse" do it "should return the same value as the equivalent if else statement" $ do x `shouldEqual` x' diff --git a/test/Main.purs b/test/Main.purs new file mode 100644 index 0000000..cb29c3f --- /dev/null +++ b/test/Main.purs @@ -0,0 +1,9 @@ +module Test.Main where + +import Prelude + +import Effect (Effect) +import Test.Conditional (testConditional) + +main :: Effect Unit +main = testConditional \ No newline at end of file