Skip to content

Commit

Permalink
test that I can see syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Apr 28, 2020
1 parent 4dd4432 commit 7cac768
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/MainTest.elm
Expand Up @@ -70,6 +70,12 @@ programTest =
|> addNote (Database.idFromInt 0) "What's up?"
|> hitShortcutKey [] Escape
|> expectViewDoesntHaveInput
, test "if I make a syntax error, I should see it" <|
\_ ->
start
|> clickButton "New Note"
|> fillIn "content" "Content" "test ["
|> expectNote (Query.find [ Selector.tag "li" ] >> Query.has [ Selector.text "While parsing a link, I was expecting the 'link' part of a [link](url)" ])
, test "after editing a note, hitting enter creates a new child note" <|
\_ ->
start
Expand Down

0 comments on commit 7cac768

Please sign in to comment.