@@ -184,38 +184,38 @@ describe('WriteAheadLogFile', () => {
184184 const w = wal ( '/test/a.log' ) ;
185185 expect ( w ) . toBeInstanceOf ( WriteAheadLogFile ) ;
186186 expect ( w . getPath ( ) ) . toBe ( '/test/a.log' ) ;
187- expect ( w . isClosed ( ) ) . toBe ( true ) ;
187+ expect ( w . isClosed ( ) ) . toBeTrue ( ) ;
188188 } ) ;
189189
190190 it ( 'throws error when appending without opening' , ( ) => {
191191 const w = wal ( '/test/a.log' ) ;
192- expect ( w . isClosed ( ) ) . toBe ( true ) ;
192+ expect ( w . isClosed ( ) ) . toBeTrue ( ) ;
193193 expect ( ( ) => w . append ( 'a' ) ) . toThrow ( 'WAL not opened' ) ;
194194 } ) ;
195195
196196 it ( 'opens and closes correctly' , ( ) => {
197197 const w = wal ( '/test/a.log' ) ;
198- expect ( w . isClosed ( ) ) . toBe ( true ) ;
198+ expect ( w . isClosed ( ) ) . toBeTrue ( ) ;
199199 w . open ( ) ;
200- expect ( w . isClosed ( ) ) . toBe ( false ) ;
200+ expect ( w . isClosed ( ) ) . toBeFalse ( ) ;
201201 w . close ( ) ;
202- expect ( w . isClosed ( ) ) . toBe ( true ) ;
202+ expect ( w . isClosed ( ) ) . toBeTrue ( ) ;
203203 } ) ;
204204
205205 it ( 'multiple open calls are idempotent' , ( ) => {
206206 const w = wal ( '/test/a.log' ) ;
207- expect ( w . isClosed ( ) ) . toBe ( true ) ;
207+ expect ( w . isClosed ( ) ) . toBeTrue ( ) ;
208208
209209 w . open ( ) ;
210- expect ( w . isClosed ( ) ) . toBe ( false ) ;
210+ expect ( w . isClosed ( ) ) . toBeFalse ( ) ;
211211
212212 w . open ( ) ;
213- expect ( w . isClosed ( ) ) . toBe ( false ) ;
213+ expect ( w . isClosed ( ) ) . toBeFalse ( ) ;
214214 w . open ( ) ;
215- expect ( w . isClosed ( ) ) . toBe ( false ) ;
215+ expect ( w . isClosed ( ) ) . toBeFalse ( ) ;
216216
217217 w . close ( ) ;
218- expect ( w . isClosed ( ) ) . toBe ( true ) ;
218+ expect ( w . isClosed ( ) ) . toBeTrue ( ) ;
219219 } ) ;
220220
221221 it ( 'append lines if opened' , ( ) => {
@@ -497,8 +497,8 @@ describe('stringCodec', () => {
497497 it ( 'should handle special JSON values' , ( ) => {
498498 const codec = stringCodec < any > ( ) ;
499499 expect ( codec . decode ( 'null' ) ) . toBeNull ( ) ;
500- expect ( codec . decode ( 'true' ) ) . toBe ( true ) ;
501- expect ( codec . decode ( 'false' ) ) . toBe ( false ) ;
500+ expect ( codec . decode ( 'true' ) ) . toBeTrue ( ) ;
501+ expect ( codec . decode ( 'false' ) ) . toBeFalse ( ) ;
502502 expect ( codec . decode ( '"quoted string"' ) ) . toBe ( 'quoted string' ) ;
503503 expect ( codec . decode ( '42' ) ) . toBe ( 42 ) ;
504504 } ) ;
@@ -684,7 +684,7 @@ describe('isCoordinatorProcess', () => {
684684 vi . stubEnv ( 'TEST_LEADER_PID' , profilerId ) ;
685685
686686 const result = isCoordinatorProcess ( 'TEST_LEADER_PID' , profilerId ) ;
687- expect ( result ) . toBe ( true ) ;
687+ expect ( result ) . toBeTrue ( ) ;
688688 } ) ;
689689
690690 it ( 'should return false when env var does not match current profilerId' , ( ) => {
@@ -693,23 +693,23 @@ describe('isCoordinatorProcess', () => {
693693
694694 const currentProfilerId = `${ Math . round ( performance . timeOrigin ) } ${ process . pid } .1.0` ;
695695 const result = isCoordinatorProcess ( 'TEST_LEADER_PID' , currentProfilerId ) ;
696- expect ( result ) . toBe ( false ) ;
696+ expect ( result ) . toBeFalse ( ) ;
697697 } ) ;
698698
699699 it ( 'should return false when env var is not set' , ( ) => {
700700 vi . stubEnv ( 'NON_EXISTENT_VAR' , undefined as any ) ;
701701
702702 const profilerId = `${ Math . round ( performance . timeOrigin ) } ${ process . pid } .1.0` ;
703703 const result = isCoordinatorProcess ( 'NON_EXISTENT_VAR' , profilerId ) ;
704- expect ( result ) . toBe ( false ) ;
704+ expect ( result ) . toBeFalse ( ) ;
705705 } ) ;
706706
707707 it ( 'should return false when env var is empty string' , ( ) => {
708708 vi . stubEnv ( 'TEST_LEADER_PID' , '' ) ;
709709
710710 const profilerId = `${ Math . round ( performance . timeOrigin ) } ${ process . pid } .1.0` ;
711711 const result = isCoordinatorProcess ( 'TEST_LEADER_PID' , profilerId ) ;
712- expect ( result ) . toBe ( false ) ;
712+ expect ( result ) . toBeFalse ( ) ;
713713 } ) ;
714714} ) ;
715715
0 commit comments