noredink-ui/tests/Spec/Nri/Ui/Checkbox/V3.elm

22 lines
622 B
Elm

module Spec.Nri.Ui.Checkbox.V3 exposing (all)
import Expect exposing (Expectation)
import Nri.Ui.Checkbox.V3 as Checkbox
import Test exposing (..)
all : Test
all =
describe "Nri.Ui.Checkbox.V3"
[ describe "selectedFromBool"
[ test "it handles Selected" <|
\() ->
Checkbox.selectedFromBool True
|> Expect.equal Checkbox.Selected
, test "it handles NotSelected" <|
\() ->
Checkbox.selectedFromBool False
|> Expect.equal Checkbox.NotSelected
]
]