Skip to content

Instantly share code, notes, and snippets.

@brian-watkins
Last active June 11, 2017 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brian-watkins/3613af44e21f89fe31479216c4697b6a to your computer and use it in GitHub Desktop.
Save brian-watkins/3613af44e21f89fe31479216c4697b6a to your computer and use it in GitHub Desktop.
module WebSocketTests exposing (..)
import Test exposing (..)
import Expect
import Elmer exposing (hasLength)
import Elmer.Html as Markup
import Elmer.Html.Matchers exposing (elements)
import App
viewTests : Test
viewTests =
describe "initial view"
[ test "it shows no items" <|
\() ->
Elmer.given App.defaultModel App.view App.update
|> Markup.target "#items li"
|> Markup.expect (elements <| hasLength 0)
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment