mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-12 12:33:10 +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
|
|
]
|
|
]
|