File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
tests/Elastic.Markdown.Tests/Directives Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ Content for C# tab
9797
9898#### Result
9999
100+ ##### Grouped Tabs
101+
100102::::{tab-set}
101103:group: languages
102104:::{tab-item} Java
@@ -134,6 +136,8 @@ Other content for C# tab
134136:::
135137::::
136138
139+ ##### Ungrouped Tabs
140+
137141::::{tab-set}
138142:::{tab-item} Java
139143:sync: java
Original file line number Diff line number Diff line change @@ -164,4 +164,15 @@ public void ParsesGroup()
164164 t . GetGroupKey ( ) . Should ( ) . Be ( "languages" ) ;
165165 }
166166 }
167+
168+ [ Fact ]
169+ public void ParsesSyncKey ( )
170+ {
171+ var set = Document . OfType < TabSetBlock > ( ) . First ( ) ;
172+ var items = set . OfType < TabItemBlock > ( ) . ToArray ( ) ;
173+ items . Should ( ) . HaveCount ( 3 ) ;
174+ items [ 0 ] . SyncKey . Should ( ) . Be ( "java" ) ;
175+ items [ 1 ] . SyncKey . Should ( ) . Be ( "golang" ) ;
176+ items [ 2 ] . SyncKey . Should ( ) . Be ( "csharp" ) ;
177+ }
167178}
You can’t perform that action at this time.
0 commit comments