From 7df677882f05cdb47a45a4a10a83a7abe4e5ec80 Mon Sep 17 00:00:00 2001 From: John McGuin Date: Mon, 25 Mar 2024 13:07:24 -0600 Subject: [PATCH] test: delete / rename test file --- tests/HelloWorldSpec.elm | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 tests/HelloWorldSpec.elm diff --git a/tests/HelloWorldSpec.elm b/tests/HelloWorldSpec.elm deleted file mode 100644 index 2a80e58..0000000 --- a/tests/HelloWorldSpec.elm +++ /dev/null @@ -1,38 +0,0 @@ -module HelloWorldSpec exposing (suite) - -import HelloWorld exposing (helloWorld) -import Msg -import Test exposing (Test) -import Test.Html.Event as Event -import Test.Html.Query as Query -import Test.Html.Selector as Html - - -suite : Test -suite = - Test.describe "HelloWorld" - [ Test.test "renders and runs helloWorld" <| - \_ -> - helloWorld 0 - |> Query.fromHtml - |> Query.has [ Html.text "Hello, Vite + Elm!" ] - , Test.test "Displays the current count" <| - \_ -> - helloWorld 5 - |> Query.fromHtml - |> Query.has [ Html.text "Count is: 5" ] - , Test.test "clicking on the + button sends an increment message" <| - \_ -> - helloWorld 0 - |> Query.fromHtml - |> Query.find [ Html.tag "button", Html.containing [ Html.text "+" ] ] - |> Event.simulate Event.click - |> Event.expect Msg.Increment - , Test.test "clicking on the - button sends a decrement message" <| - \_ -> - helloWorld 0 - |> Query.fromHtml - |> Query.find [ Html.tag "button", Html.containing [ Html.text "-" ] ] - |> Event.simulate Event.click - |> Event.expect Msg.Decrement - ]