mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-27 13:02:42 +03:00
delete spec for deprecated component
This commit is contained in:
parent
cbe378a414
commit
72b5aeeb69
@ -1,59 +0,0 @@
|
||||
module Spec.Nri.Ui.Tabs.V5 exposing (all)
|
||||
|
||||
import Accessibility.Styled as Html
|
||||
import Expect
|
||||
import Nri.Ui.Tabs.V5 as Tabs
|
||||
import ProgramTest
|
||||
import Test exposing (..)
|
||||
|
||||
|
||||
all : Test
|
||||
all =
|
||||
describe "Nri.Ui.Tabs.V5"
|
||||
[ test "works with ProgramTest.clickButton" <|
|
||||
\() ->
|
||||
ProgramTest.createSandbox
|
||||
{ init = "ID_FIRST"
|
||||
, update =
|
||||
\msg old ->
|
||||
case msg of
|
||||
Select id ->
|
||||
id
|
||||
|
||||
Focus idString ->
|
||||
old
|
||||
, view =
|
||||
\selected ->
|
||||
Tabs.view
|
||||
{ title = Nothing
|
||||
, alignment = Tabs.Center
|
||||
, customSpacing = Nothing
|
||||
, onSelect = Select
|
||||
, onFocus = Focus
|
||||
, selected = selected
|
||||
, tabs =
|
||||
[ { id = "ID_FIRST"
|
||||
, idString = "first"
|
||||
, spaHref = Nothing
|
||||
, tabView = Tabs.viewTabDefault "Link example"
|
||||
, panelView = Html.text "First Panel"
|
||||
}
|
||||
, { id = "ID_SECOND"
|
||||
, idString = "second"
|
||||
, spaHref = Nothing
|
||||
, tabView = Tabs.viewTabDefault "Second Tab"
|
||||
, panelView = Html.text "Second Panel"
|
||||
}
|
||||
]
|
||||
}
|
||||
|> Html.toUnstyled
|
||||
}
|
||||
|> ProgramTest.start ()
|
||||
|> ProgramTest.clickButton "Second tab"
|
||||
|> ProgramTest.expectModel (Expect.equal "ID_SECOND")
|
||||
]
|
||||
|
||||
|
||||
type Msg
|
||||
= Select String
|
||||
| Focus String
|
Loading…
Reference in New Issue
Block a user