elm-ui-widgets/tests/VerifyExamples/Widget/InsetItem0.elm

44 lines
1.9 KiB
Elm
Raw Normal View History

2021-02-05 18:59:34 +03:00
module VerifyExamples.Widget.InsetItem0 exposing (..)
2021-02-03 00:22:10 +03:00
-- This file got generated by [elm-verify-examples](https://github.com/stoeffel/elm-verify-examples).
-- Please don't modify this file by hand!
import Test
import Expect
import Widget exposing (..)
import Widget.Material as Material
import Element
spec0 : Test.Test
spec0 =
2021-02-05 22:49:17 +03:00
Test.test "#insetItem: \n\n [ Widget.insetItem (Material.insetItem Material.defaultPalette)\n { onPress = Nothing\n , icon = always Element.none\n , text = \"Item\"\n , content = always Element.none\n }\n , Widget.divider (Material.insetDivider Material.defaultPalette )\n , Widget.insetItem (Material.insetItem Material.defaultPalette)\n { onPress = Nothing\n , icon = always Element.none\n , text = \"Item\"\n , content = always Element.none\n }\n ]\n |> Widget.itemList (Material.cardColumn Material.defaultPalette)\n |> always \"Ignore this line\"\n --> \"Ignore this line\"" <|
2021-02-03 00:22:10 +03:00
\() ->
Expect.equal
(
2021-02-05 18:59:34 +03:00
[ Widget.insetItem (Material.insetItem Material.defaultPalette)
2021-02-03 00:22:10 +03:00
{ onPress = Nothing
, icon = always Element.none
, text = "Item"
2021-02-05 22:49:17 +03:00
, content = always Element.none
2021-02-03 00:22:10 +03:00
}
, Widget.divider (Material.insetDivider Material.defaultPalette )
2021-02-05 18:59:34 +03:00
, Widget.insetItem (Material.insetItem Material.defaultPalette)
2021-02-03 00:22:10 +03:00
{ onPress = Nothing
, icon = always Element.none
, text = "Item"
2021-02-05 22:49:17 +03:00
, content = always Element.none
2021-02-03 00:22:10 +03:00
}
]
|> Widget.itemList (Material.cardColumn Material.defaultPalette)
|> always "Ignore this line"
)
(
"Ignore this line"
)