mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-27 13:02:42 +03:00
commit
7aec67a782
52
package-lock.json
generated
52
package-lock.json
generated
@ -1946,10 +1946,13 @@
|
||||
}
|
||||
},
|
||||
"elm": {
|
||||
"version": "0.19.0-no-deps",
|
||||
"resolved": "https://registry.npmjs.org/elm/-/elm-0.19.0-no-deps.tgz",
|
||||
"integrity": "sha512-tOlSeo5Bt0Rkrt/aBjL+/a+TmAFdfeqjrOlThrhgKOoGeHt1hU7/hJ+HFMlHiODf09AQh7Anl64o7V6thzmRHw==",
|
||||
"dev": true
|
||||
"version": "0.19.1-3",
|
||||
"resolved": "https://registry.npmjs.org/elm/-/elm-0.19.1-3.tgz",
|
||||
"integrity": "sha512-6y36ewCcVmTOx8lj7cKJs3bhI5qMfoVEigePZ9PhEUNKpwjjML/pU2u2YSpHVAznuCcojoF6KIsrS1Ci7GtVaQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"request": "^2.88.0"
|
||||
}
|
||||
},
|
||||
"elm-format": {
|
||||
"version": "0.8.3",
|
||||
@ -2383,7 +2386,8 @@
|
||||
"ansi-regex": {
|
||||
"version": "2.1.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"aproba": {
|
||||
"version": "1.2.0",
|
||||
@ -2404,12 +2408,14 @@
|
||||
"balanced-match": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
@ -2424,17 +2430,20 @@
|
||||
"code-point-at": {
|
||||
"version": "1.1.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"concat-map": {
|
||||
"version": "0.0.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"console-control-strings": {
|
||||
"version": "1.1.0",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"core-util-is": {
|
||||
"version": "1.0.2",
|
||||
@ -2551,7 +2560,8 @@
|
||||
"inherits": {
|
||||
"version": "2.0.3",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"ini": {
|
||||
"version": "1.3.5",
|
||||
@ -2563,6 +2573,7 @@
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"number-is-nan": "^1.0.0"
|
||||
}
|
||||
@ -2577,6 +2588,7 @@
|
||||
"version": "3.0.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"brace-expansion": "^1.1.7"
|
||||
}
|
||||
@ -2584,12 +2596,14 @@
|
||||
"minimist": {
|
||||
"version": "0.0.8",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"minipass": {
|
||||
"version": "2.2.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"safe-buffer": "^5.1.1",
|
||||
"yallist": "^3.0.0"
|
||||
@ -2608,6 +2622,7 @@
|
||||
"version": "0.5.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"minimist": "0.0.8"
|
||||
}
|
||||
@ -2688,7 +2703,8 @@
|
||||
"number-is-nan": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"object-assign": {
|
||||
"version": "4.1.1",
|
||||
@ -2700,6 +2716,7 @@
|
||||
"version": "1.4.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"wrappy": "1"
|
||||
}
|
||||
@ -2785,7 +2802,8 @@
|
||||
"safe-buffer": {
|
||||
"version": "5.1.1",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
@ -2821,6 +2839,7 @@
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"code-point-at": "^1.0.0",
|
||||
"is-fullwidth-code-point": "^1.0.0",
|
||||
@ -2840,6 +2859,7 @@
|
||||
"version": "3.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"ansi-regex": "^2.0.0"
|
||||
}
|
||||
@ -2883,12 +2903,14 @@
|
||||
"wrappy": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"yallist": {
|
||||
"version": "3.0.2",
|
||||
"bundled": true,
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -28,7 +28,7 @@
|
||||
"devDependencies": {
|
||||
"@percy/script": "^1.0.2",
|
||||
"browserify": "16.2.3",
|
||||
"elm": "^0.19.0-no-deps",
|
||||
"elm": "latest-0.19.1",
|
||||
"elm-format": "0.8.3",
|
||||
"elm-test": "0.19.1",
|
||||
"elm-verify-examples": "^4.0.0",
|
||||
|
@ -4,7 +4,7 @@
|
||||
".",
|
||||
"../src"
|
||||
],
|
||||
"elm-version": "0.19.0",
|
||||
"elm-version": "0.19.1",
|
||||
"dependencies": {
|
||||
"direct": {
|
||||
"BrianHicks/elm-particle": "1.3.1",
|
||||
@ -44,4 +44,4 @@
|
||||
"direct": {},
|
||||
"indirect": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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