mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-25 06:33:09 +03:00
22 lines
622 B
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
|
||
|
]
|
||
|
]
|