@@ -274,6 +274,7 @@ describe("ReviewComponent", () => {
274274 ( ) => undefined ,
275275 ) ;
276276
277+ highlightedComponent . handleInput ( "t" ) ;
277278 ( highlightedComponent as any ) . search . query = "needle" ;
278279 ( highlightedComponent as any ) . search . jump ( 1 , 0 ) ;
279280 const output = highlightedComponent . render ( 200 ) . join ( "\n" ) ;
@@ -287,6 +288,7 @@ describe("ReviewComponent", () => {
287288
288289 ( component as any ) . selected = 2 ;
289290 component . handleInput ( "f" ) ;
291+ component . handleInput ( "t" ) ;
290292 const output = component . render ( 100 ) . join ( "\n" ) ;
291293
292294 assert . match ( output , / s r c \/ a \. t s / ) ;
@@ -314,15 +316,11 @@ describe("ReviewComponent", () => {
314316 } ) ;
315317
316318 ( component as any ) . selected = 2 ;
317- component . handleInput ( "t" ) ;
318319 let output = component . render ( 100 ) . join ( "\n" ) ;
319320 assert . match ( output , / s r c \/ a \. t s / ) ;
320321 assert . match ( output , / s r c \/ b \. t s / ) ;
321322 assert . doesNotMatch ( output , / F i l e s / ) ;
322- assert . match (
323- output ,
324- / \n < b g : s e l e c t e d B g > s r c \/ a \. t s \s + \+ 0 - 0 < \/ b g : s e l e c t e d B g > / ,
325- ) ;
323+ assert . match ( output , / < b g : s e l e c t e d B g > s r c \/ a \. t s \+ 0 - 0 / ) ;
326324
327325 component . handleInput ( "]" ) ;
328326 output = component . render ( 100 ) . join ( "\n" ) ;
0 commit comments