File tree Expand file tree Collapse file tree
packages/infra/src/logger Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,8 +102,7 @@ describe('axiomTransport', () => {
102102
103103 await transport . flush ( ) ;
104104
105- expect ( mocks . waitUntil ) . toHaveBeenCalledWith ( mocks . flush ( ) ) ;
106- expect ( mocks . waitUntil ) . toHaveBeenCalledOnce ( ) ;
105+ expect ( mocks . waitUntil ) . toHaveBeenCalledExactlyOnceWith ( mocks . flush ( ) ) ;
107106 } ) ;
108107
109108 it ( 'should flush with logs' , async ( ) => {
@@ -121,8 +120,7 @@ describe('axiomTransport', () => {
121120 expect . objectContaining ( { level : 'error' , msg : 'test log 2' } ) ,
122121 ) ;
123122
124- expect ( mocks . waitUntil ) . toHaveBeenCalledWith ( mocks . flush ( ) ) ;
125- expect ( mocks . waitUntil ) . toHaveBeenCalledOnce ( ) ;
123+ expect ( mocks . waitUntil ) . toHaveBeenCalledExactlyOnceWith ( mocks . flush ( ) ) ;
126124 } ) ;
127125
128126 it ( 'should not ingest invalid logs' , async ( ) => {
You can’t perform that action at this time.
0 commit comments