Last active
June 11, 2017 14:43
-
-
Save brian-watkins/3613af44e21f89fe31479216c4697b6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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