@@ -194,24 +194,24 @@ describe('Dynamic Instrumentation', function () {
194194
195195 it (
196196 'should send expected error diagnostics messages if probe doesn\'t conform to expected schema' ,
197- unsupporedOrInvalidProbesTest ( { invalid : 'config' } , { status : 'ERROR' } )
197+ unsupportedOrInvalidProbesTest ( { invalid : 'config' } , { status : 'ERROR' } )
198198 )
199199
200200 it (
201201 'should send expected error diagnostics messages if probe type isn\'t supported' ,
202202 // @ts -expect-error Expecting this probe type to be invalid
203- unsupporedOrInvalidProbesTest ( t . generateProbeConfig ( { type : 'INVALID_PROBE' } ) )
203+ unsupportedOrInvalidProbesTest ( t . generateProbeConfig ( { type : 'INVALID_PROBE' } ) )
204204 )
205205
206206 it (
207207 'should send expected error diagnostics messages if it isn\'t a line-probe' ,
208- unsupporedOrInvalidProbesTest (
208+ unsupportedOrInvalidProbesTest (
209209 // @ts -expect-error Expecting this probe type to be invalid
210210 t . generateProbeConfig ( { where : { typeName : 'index.js' , methodName : 'handlerA' } } )
211211 )
212212 )
213213
214- function unsupporedOrInvalidProbesTest ( config , customErrorDiagnosticsObj ) {
214+ function unsupportedOrInvalidProbesTest ( config , customErrorDiagnosticsObj ) {
215215 return function ( done ) {
216216 let receivedAckUpdate = false
217217
@@ -369,7 +369,7 @@ describe('Dynamic Instrumentation', function () {
369369 t . agent . addRemoteConfig ( rcConfig2 )
370370 } )
371371
372- it ( 'should only trigger the probes whos conditions are met (all have conditions)' , function ( done ) {
372+ it ( 'should only trigger the probes whose conditions are met (all have conditions)' , function ( done ) {
373373 let installed = 0
374374 const rcConfig1 = t . generateRemoteConfig ( {
375375 when : { json : { eq : [ { getmember : [ { getmember : [ { ref : 'request' } , 'params' ] } , 'name' ] } , 'invalid' ] } }
@@ -450,7 +450,7 @@ describe('Dynamic Instrumentation', function () {
450450 }
451451 } )
452452
453- it ( 'should only trigger the probes whos conditions are met (not all have conditions)' , function ( done ) {
453+ it ( 'should only trigger the probes whose conditions are met (not all have conditions)' , function ( done ) {
454454 let installed = 0
455455 const rcConfig1 = t . generateRemoteConfig ( {
456456 when : { json : { eq : [ { getmember : [ { getmember : [ { ref : 'request' } , 'params' ] } , 'name' ] } , 'invalid' ] } }
@@ -539,7 +539,7 @@ describe('Dynamic Instrumentation', function () {
539539 t . agent . on ( 'debugger-diagnostics' , ( { payload } ) => {
540540 payload . forEach ( ( event ) => {
541541 if ( event . debugger . diagnostics . status === 'INSTALLED' ) {
542- t . agent . once ( 'remote-confg -responded' , async ( ) => {
542+ t . agent . once ( 'remote-config -responded' , async ( ) => {
543543 await t . axios . get ( t . breakpoint . url )
544544 // We want to wait enough time to see if the client triggers on the breakpoint so that the test can fail
545545 // if it does, but not so long that the test times out.
@@ -607,23 +607,23 @@ describe('Dynamic Instrumentation', function () {
607607 const rcConfig2 = t . breakpoints [ 1 ] . generateRemoteConfig ( { sampling : { snapshotsPerSecond : 1 } } )
608608 const state = {
609609 [ rcConfig1 . config . id ] : {
610- tiggerBreakpointContinuously ( ) {
610+ triggerBreakpointContinuously ( ) {
611611 t . axios . get ( t . breakpoints [ 0 ] . url ) . catch ( done )
612- this . timer = setTimeout ( this . tiggerBreakpointContinuously . bind ( this ) , 10 )
612+ this . timer = setTimeout ( this . triggerBreakpointContinuously . bind ( this ) , 10 )
613613 }
614614 } ,
615615 [ rcConfig2 . config . id ] : {
616- tiggerBreakpointContinuously ( ) {
616+ triggerBreakpointContinuously ( ) {
617617 t . axios . get ( t . breakpoints [ 1 ] . url ) . catch ( done )
618- this . timer = setTimeout ( this . tiggerBreakpointContinuously . bind ( this ) , 10 )
618+ this . timer = setTimeout ( this . triggerBreakpointContinuously . bind ( this ) , 10 )
619619 }
620620 }
621621 }
622622
623623 t . agent . on ( 'debugger-diagnostics' , ( { payload } ) => {
624624 payload . forEach ( ( event ) => {
625625 const { probeId, status } = event . debugger . diagnostics
626- if ( status === 'INSTALLED' ) state [ probeId ] . tiggerBreakpointContinuously ( )
626+ if ( status === 'INSTALLED' ) state [ probeId ] . triggerBreakpointContinuously ( )
627627 } )
628628 } )
629629
@@ -741,7 +741,7 @@ describe('Dynamic Instrumentation', function () {
741741 t . axios . get ( t . breakpoint . url ) . catch ( ( err ) => {
742742 // If the request hasn't fully completed by the time the tests ends and the target app is destroyed,
743743 // Axios will complain with a "socket hang up" error. Hence this sanity check before calling
744- // `done(err)`. If we later add more tests below this one, this shouuldn 't be an issue.
744+ // `done(err)`. If we later add more tests below this one, this shouldn 't be an issue.
745745 if ( ! finished ) done ( err )
746746 } )
747747 }
@@ -909,7 +909,7 @@ function assertBasicInputPayload (t, payload, probe = t.rcConfig.config) {
909909 assert . isAbove ( frame . columnNumber , 0 )
910910 }
911911 const topFrame = payload . debugger . snapshot . stack [ 0 ]
912- // path seems to be prefeixed with `/private` on Mac
912+ // path seems to be prefixed with `/private` on Mac
913913 assert . match ( topFrame . fileName , new RegExp ( `${ t . appFile } $` ) )
914914 assert . strictEqual ( topFrame . function , 'fooHandler' )
915915 assert . strictEqual ( topFrame . lineNumber , t . breakpoint . line )
0 commit comments