@@ -7,9 +7,11 @@ import { JumpLinksList } from '../JumpLinksList';
77test ( 'simple jumplinks' , ( ) => {
88 const { asFragment } = render (
99 < JumpLinks >
10- < JumpLinksItem > Inactive section</ JumpLinksItem >
11- < JumpLinksItem isActive > Active section</ JumpLinksItem >
12- < JumpLinksItem > Inactive section</ JumpLinksItem >
10+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
11+ < JumpLinksItem href = "#" isActive >
12+ Active section
13+ </ JumpLinksItem >
14+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
1315 </ JumpLinks >
1416 ) ;
1517 expect ( asFragment ( ) ) . toMatchSnapshot ( ) ;
@@ -18,9 +20,11 @@ test('simple jumplinks', () => {
1820test ( 'jumplinks centered' , ( ) => {
1921 const { asFragment } = render (
2022 < JumpLinks isCentered >
21- < JumpLinksItem > Inactive section</ JumpLinksItem >
22- < JumpLinksItem isActive > Active section</ JumpLinksItem >
23- < JumpLinksItem > Inactive section</ JumpLinksItem >
23+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
24+ < JumpLinksItem href = "#" isActive >
25+ Active section
26+ </ JumpLinksItem >
27+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
2428 </ JumpLinks >
2529 ) ;
2630 expect ( asFragment ( ) ) . toMatchSnapshot ( ) ;
@@ -29,9 +33,11 @@ test('jumplinks centered', () => {
2933test ( 'jumplinks with label' , ( ) => {
3034 const { asFragment } = render (
3135 < JumpLinks isCentered label = "Jump to section" >
32- < JumpLinksItem > Inactive section</ JumpLinksItem >
33- < JumpLinksItem isActive > Active section</ JumpLinksItem >
34- < JumpLinksItem > Inactive section</ JumpLinksItem >
36+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
37+ < JumpLinksItem href = "#" isActive >
38+ Active section
39+ </ JumpLinksItem >
40+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
3541 </ JumpLinks >
3642 ) ;
3743 expect ( asFragment ( ) ) . toMatchSnapshot ( ) ;
@@ -40,9 +46,11 @@ test('jumplinks with label', () => {
4046test ( 'vertical with label' , ( ) => {
4147 const { asFragment } = render (
4248 < JumpLinks isVertical alwaysShowLabel label = "Jump to section" >
43- < JumpLinksItem > Inactive section</ JumpLinksItem >
44- < JumpLinksItem isActive > Active section</ JumpLinksItem >
45- < JumpLinksItem > Inactive section</ JumpLinksItem >
49+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
50+ < JumpLinksItem href = "#" isActive >
51+ Active section
52+ </ JumpLinksItem >
53+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
4654 </ JumpLinks >
4755 ) ;
4856 expect ( asFragment ( ) ) . toMatchSnapshot ( ) ;
@@ -51,17 +59,19 @@ test('vertical with label', () => {
5159test ( 'expandable vertical with subsection' , ( ) => {
5260 const { asFragment } = render (
5361 < JumpLinks isVertical label = "Jump to section" expandable = { { default : 'expandable' } } >
54- < JumpLinksItem > Inactive section</ JumpLinksItem >
55- < JumpLinksItem >
62+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
63+ < JumpLinksItem href = "#" >
5664 Section with active subsection
5765 < JumpLinksList >
58- < JumpLinksItem isActive > Active subsection</ JumpLinksItem >
59- < JumpLinksItem > Inactive subsection</ JumpLinksItem >
60- < JumpLinksItem > Inactive subsection</ JumpLinksItem >
66+ < JumpLinksItem href = "#" isActive >
67+ Active subsection
68+ </ JumpLinksItem >
69+ < JumpLinksItem href = "#" > Inactive subsection</ JumpLinksItem >
70+ < JumpLinksItem href = "#" > Inactive subsection</ JumpLinksItem >
6171 </ JumpLinksList >
6272 </ JumpLinksItem >
63- < JumpLinksItem > Inactive section</ JumpLinksItem >
64- < JumpLinksItem > Inactive section</ JumpLinksItem >
73+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
74+ < JumpLinksItem href = "#" > Inactive section</ JumpLinksItem >
6575 </ JumpLinks >
6676 ) ;
6777 expect ( asFragment ( ) ) . toMatchSnapshot ( ) ;
0 commit comments