File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
src/cortex-tui/src/widgets/help_browser Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ mod tests {
4343 #[ test]
4444 fn test_help_browser_state_with_topic ( ) {
4545 let state = HelpBrowserState :: new ( ) . with_topic ( Some ( "keyboard" ) ) ;
46- assert_eq ! ( state. current_section( ) . expect( "should have section" ) . id, "keyboard" ) ;
46+ assert_eq ! (
47+ state. current_section( ) . expect( "should have section" ) . id,
48+ "keyboard"
49+ ) ;
4750 }
4851
4952 #[ test]
@@ -220,10 +223,16 @@ mod tests {
220223 #[ test]
221224 fn test_current_section ( ) {
222225 let mut state = HelpBrowserState :: new ( ) ;
223- assert_eq ! ( state. current_section( ) . expect( "should have section" ) . id, "getting-started" ) ;
226+ assert_eq ! (
227+ state. current_section( ) . expect( "should have section" ) . id,
228+ "getting-started"
229+ ) ;
224230
225231 state. select_next ( ) ;
226- assert_eq ! ( state. current_section( ) . expect( "should have section" ) . id, "keyboard" ) ;
232+ assert_eq ! (
233+ state. current_section( ) . expect( "should have section" ) . id,
234+ "keyboard"
235+ ) ;
227236 }
228237
229238 #[ test]
@@ -239,4 +248,4 @@ mod tests {
239248 state. sections . clear ( ) ;
240249 assert ! ( state. current_section( ) . is_none( ) ) ;
241250 }
242- }
251+ }
You can’t perform that action at this time.
0 commit comments