mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-29 00:21:42 +03:00
Remove unnecessary setup from Spec.Nri.Ui.TextInput.V6
This commit is contained in:
parent
a2d305b6e4
commit
af94ad7d0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user