@@ -297,12 +297,12 @@ describe('SpanStatsProcessor', () => {
297297 processor = new SpanStatsProcessor ( config )
298298 clearTimeout ( processor . timer )
299299
300- assert . ok ( SpanStatsExporter . calledWith ( {
300+ assert . deepStrictEqual ( SpanStatsExporter . lastCall . args [ 0 ] , {
301301 hostname : config . hostname ,
302302 port : config . port ,
303303 url : config . url ,
304304 tags : config . tags ,
305- } ) )
305+ } )
306306 assert . strictEqual ( processor . interval , config . stats . interval )
307307 assert . ok ( processor . buckets instanceof TimeBuckets )
308308 assert . strictEqual ( processor . hostname , hostname ( ) )
@@ -362,7 +362,7 @@ describe('SpanStatsProcessor', () => {
362362 it ( 'should export on interval' , ( ) => {
363363 processor . onInterval ( )
364364
365- assert . ok ( exporter . export . calledWith ( {
365+ assert . deepStrictEqual ( exporter . export . lastCall . args [ 0 ] , {
366366 Hostname : hostname ( ) ,
367367 Env : config . env ,
368368 Version : config . version ,
@@ -391,7 +391,7 @@ describe('SpanStatsProcessor', () => {
391391 RuntimeID : processor . tags [ 'runtime-id' ] ,
392392 Sequence : processor . sequence ,
393393 ProcessTags : processTags . serialized ,
394- } ) )
394+ } )
395395 } )
396396
397397 it ( 'should export on interval with default version' , ( ) => {
@@ -400,7 +400,7 @@ describe('SpanStatsProcessor', () => {
400400 const processor = new SpanStatsProcessor ( versionlessConfig )
401401 processor . onInterval ( )
402402
403- assert . ok ( exporter . export . calledWith ( {
403+ assert . deepStrictEqual ( exporter . export . lastCall . args [ 0 ] , {
404404 Hostname : hostname ( ) ,
405405 Env : config . env ,
406406 Version : version ,
@@ -410,6 +410,6 @@ describe('SpanStatsProcessor', () => {
410410 RuntimeID : processor . tags [ 'runtime-id' ] ,
411411 Sequence : processor . sequence ,
412412 ProcessTags : processTags . serialized ,
413- } ) )
413+ } )
414414 } )
415415} )
0 commit comments