diff --git a/core/tests/tests/GlobalComponent.mint b/core/tests/tests/GlobalComponent.mint new file mode 100644 index 00000000..4c7b46d8 --- /dev/null +++ b/core/tests/tests/GlobalComponent.mint @@ -0,0 +1,11 @@ +global component GlobalTest { + fun render : Html { +
+ } +} + +suite "Global Component" { + test "It renders on the page" { + Dom.getElementBySelector(".global-component") != Maybe.Nothing + } +} diff --git a/core/tests/tests/Test.mint b/core/tests/tests/Test.mint index 5addaf7a..4b869b74 100644 --- a/core/tests/tests/Test.mint +++ b/core/tests/tests/Test.mint @@ -17,3 +17,25 @@ suite "Test (Function)" { test() == "" } } + +suite "Test with HTML reference" { + test "it works" { +