@@ -57,7 +57,7 @@ function timerData(
5757 if ( event === "step" ) {
5858 return { event, timer, drift : 0 } ;
5959 }
60- return { event, timer } ;
60+ return { event, timer, date : 0 } ;
6161}
6262
6363describe ( "data.ts" , ( ) => {
@@ -285,18 +285,8 @@ describe("data.ts", () => {
285285 logTestEvent ( "input" , 1010 , inputData ( { wordIndex : 0 , charIndex : 0 } ) ) ;
286286 logTestEvent ( "input" , 1100 , inputData ( { wordIndex : 0 , charIndex : 1 } ) ) ;
287287
288- const perWord = getEventsPerWord ( getAllTestEvents ( ) , undefined , 50 ) ;
289- expect ( perWord . get ( 0 ) ) . toHaveLength ( 1 ) ;
290- } ) ;
291-
292- it ( "respects startMs" , ( ) => {
293- logTestEvent ( "input" , 1010 , inputData ( { wordIndex : 0 , charIndex : 0 } ) ) ;
294- logTestEvent ( "input" , 1100 , inputData ( { wordIndex : 0 , charIndex : 1 } ) ) ;
295-
296288 const perWord = getEventsPerWord ( getAllTestEvents ( ) , 50 ) ;
297289 expect ( perWord . get ( 0 ) ) . toHaveLength ( 1 ) ;
298- const first = perWord . get ( 0 ) ?. [ 0 ] ;
299- expect ( first ?. type === "input" && first . data . charIndex ) . toBe ( 1 ) ;
300290 } ) ;
301291 } ) ;
302292
0 commit comments