@@ -15,7 +15,7 @@ describe('LogFormatter', () => {
1515 const cleanFormatted = formatted . replace ( / \x1b \[ [ 0 - 9 ; ] * m / g, '' ) ;
1616
1717 // Verify format: [ISO_TIMESTAMP][LOCAL_TIME][LEVEL]: message
18- expect ( cleanFormatted ) . toMatch ( / ^ \[ \d { 4 } - \d { 2 } - \d { 2 } T \d { 2 } : \d { 2 } : \d { 2 } \. \d { 3 } Z \] \[ \d { 1 , 2 } : \d { 2 } [ A P ] M \] \[ I N F O \] : T e s t m e s s a g e $ / ) ;
18+ expect ( cleanFormatted ) . toMatch ( / ^ \[ \d { 4 } - \d { 2 } - \d { 2 } T \d { 2 } : \d { 2 } : \d { 2 } \. \d { 3 } Z \] \[ \d { 1 , 2 } : \d { 2 } [ A P ] M \] \[ I N F O \] : T e s t m e s s a g e $ / ) ;
1919 } ) ;
2020
2121 it ( 'should format different log levels correctly' , ( ) => {
@@ -50,7 +50,7 @@ describe('LogFormatter', () => {
5050 const cleanFormatted = formatted . replace ( / \x1b \[ [ 0 - 9 ; ] * m / g, '' ) ;
5151
5252 // Should have timestamps and level but empty message at end
53- expect ( cleanFormatted ) . toMatch ( / ^ \[ \d { 4 } - \d { 2 } - \d { 2 } T \d { 2 } : \d { 2 } : \d { 2 } \. \d { 3 } Z \] \[ \d { 1 , 2 } : \d { 2 } [ A P ] M \] \[ I N F O \] : $ / ) ;
53+ expect ( cleanFormatted ) . toMatch ( / ^ \[ \d { 4 } - \d { 2 } - \d { 2 } T \d { 2 } : \d { 2 } : \d { 2 } \. \d { 3 } Z \] \[ \d { 1 , 2 } : \d { 2 } [ A P ] M \] \[ I N F O \] : $ / ) ;
5454 } ) ;
5555
5656 it ( 'should handle special characters in messages' , ( ) => {
@@ -95,7 +95,7 @@ describe('LogFormatter', () => {
9595
9696 // Should contain timestamp components
9797 expect ( formatted ) . toMatch ( / \[ \d { 4 } - \d { 2 } - \d { 2 } T \d { 2 } : \d { 2 } : \d { 2 } \. \d { 3 } Z \] / ) ; // ISO timestamp
98- expect ( formatted ) . toMatch ( / \[ \d { 1 , 2 } : \d { 2 } [ A P ] M \] / ) ; // Local time
98+ expect ( formatted ) . toMatch ( / \[ \d { 1 , 2 } : \d { 2 } [ A P ] M \] / ) ; // Local time
9999 } ) ;
100100
101101 it ( 'should format system messages with colors' , ( ) => {
0 commit comments