Remove unnecessary setup from Spec.Nri.Ui.TextInput.V6

This commit is contained in:
Aaron VonderHaar 2020-04-13 16:59:40 -07:00
parent a2d305b6e4
commit af94ad7d0c

View File

@ -1,23 +1,21 @@
module Spec.Nri.Ui.TextInput.V6 exposing (all)
module Spec.Nri.Ui.TextInput.V6 exposing (spec)
import Html.Styled
import Nri.Ui.TextInput.V6 as TextInput
import Test exposing (..)
import Test.Html.Query as Query
import Test.Html.Selector exposing (id, tag)
import Test.Html.Selector exposing (..)
all : Test
all =
spec : Test
spec =
describe "Nri.Ui.TextInput.V6"
[ test "it uses the same DOM id that generateId produces" <|
\() ->
TextInput.view "myLabel"
(TextInput.text identity)
[ TextInput.hiddenLabel
, TextInput.placeholder "placeholder"
]
"value"
[]
""
|> Html.Styled.toUnstyled
|> Query.fromHtml
|> Query.has