mirror of
https://github.com/rowtype-yoga/purescript-yoga-tree.git
synced 2024-09-11 16:35:29 +03:00
Update Spec tests to run in Aff
This commit is contained in:
parent
f5f7c7f8bc
commit
f00f936218
@ -8,11 +8,12 @@ import Data.Maybe (Maybe(..), fromJust)
|
||||
import Data.Tree (Tree, mkTree, scanTree)
|
||||
import Data.Tree.Zipper (down, findDownWhere, findFromRoot, findUp, flattenLocDepthFirst, fromTree, insertAfter, modifyValue, next, toTree, value, firstChild, lastChild)
|
||||
import Effect (Effect)
|
||||
import Effect.Aff (launchAff_)
|
||||
import Partial.Unsafe (unsafePartial)
|
||||
import Test.Spec (describe, it)
|
||||
import Test.Spec.Assertions (shouldEqual)
|
||||
import Test.Spec.Reporter (consoleReporter)
|
||||
import Test.Spec.Runner (run)
|
||||
import Test.Spec.Runner (runSpec)
|
||||
|
||||
sampleTree :: Tree Int
|
||||
sampleTree =
|
||||
@ -29,7 +30,7 @@ sampleTree =
|
||||
: Nil
|
||||
|
||||
main :: Effect Unit
|
||||
main = run [consoleReporter] do
|
||||
main = launchAff_ $ runSpec [consoleReporter] do
|
||||
describe "Tree" do
|
||||
|
||||
it "mkTree" do
|
||||
|
Loading…
Reference in New Issue
Block a user