diff --git a/test/detect/elm/default.txt b/test/detect/elm/default.txt index f2380e5a21..5d9c384057 100644 --- a/test/detect/elm/default.txt +++ b/test/detect/elm/default.txt @@ -1,18 +1,22 @@ +import Browser import Html exposing (div, button, text) -import Html.App exposing (beginnerProgram) import Html.Events exposing (onClick) type Msg = Increment main = - beginnerProgram - { model = 0, view = view - , update = \Increment model -> model + 1 } + Browser.sandbox + { init = 0 + , update = \msg model -> model + 1 + , view = view + } view model = - div [] [ div [] [ text (toString model) ] - , button [ onClick Increment ] [ text "+" ] ] + div [] + [ div [] [ text (String.fromInt model) ] + , button [ onClick Increment ] [ text "+" ] + ] chars = String.cons 'C' <| String.cons 'h' <| "ars"