@@ -75,7 +75,7 @@ describe('UdpExporterTest', () => {
7575} ) ;
7676
7777describe ( 'AwsXrayUdpSpanExporterTest' , ( ) => {
78- let AwsXrayUdpSpanExporter : AwsXrayUdpSpanExporter ;
78+ let awsXrayUdpSpanExporter : AwsXrayUdpSpanExporter ;
7979 let udpExporterMock : { sendData : any ; shutdown : any } ;
8080 let diagErrorSpy : sinon . SinonSpy < [ message : string , ...args : unknown [ ] ] , void > ;
8181 const endpoint = '127.0.0.1:3000' ;
@@ -124,7 +124,7 @@ describe('AwsXrayUdpSpanExporterTest', () => {
124124 diagErrorSpy = sinon . spy ( diag , 'error' ) ;
125125
126126 // Create an instance of AwsXrayUdpSpanExporter
127- AwsXrayUdpSpanExporter = new AwsXrayUdpSpanExporter ( endpoint , prefix ) ;
127+ awsXrayUdpSpanExporter = new AwsXrayUdpSpanExporter ( endpoint , prefix ) ;
128128 } ) ;
129129
130130 afterEach ( ( ) => {
@@ -137,7 +137,7 @@ describe('AwsXrayUdpSpanExporterTest', () => {
137137 // Stub ProtobufTraceSerializer.serializeRequest
138138 sinon . stub ( ProtobufTraceSerializer , 'serializeRequest' ) . returns ( serializedData ) ;
139139
140- AwsXrayUdpSpanExporter . export ( spans , callback ) ;
140+ awsXrayUdpSpanExporter . export ( spans , callback ) ;
141141
142142 expect ( udpExporterMock . sendData . calledOnceWith ( serializedData , 'T1' ) ) . toBe ( true ) ;
143143 expect ( callback . calledOnceWith ( { code : ExportResultCode . SUCCESS } ) ) . toBe ( true ) ;
@@ -149,7 +149,7 @@ describe('AwsXrayUdpSpanExporterTest', () => {
149149 sinon . stub ( ProtobufTraceSerializer , 'serializeRequest' ) . returns ( undefined ) ;
150150 const callback = sinon . stub ( ) ;
151151
152- AwsXrayUdpSpanExporter . export ( spans , callback ) ;
152+ awsXrayUdpSpanExporter . export ( spans , callback ) ;
153153
154154 expect ( callback . notCalled ) . toBe ( true ) ;
155155 expect ( udpExporterMock . sendData . notCalled ) . toBe ( true ) ;
@@ -162,18 +162,18 @@ describe('AwsXrayUdpSpanExporterTest', () => {
162162
163163 const callback = sinon . stub ( ) ;
164164
165- AwsXrayUdpSpanExporter . export ( spans , callback ) ;
165+ awsXrayUdpSpanExporter . export ( spans , callback ) ;
166166
167167 expect ( diagErrorSpy . calledOnceWith ( 'Error exporting spans: %s' , sinon . match . instanceOf ( Error ) ) ) . toBe ( true ) ;
168168 expect ( callback . calledOnceWith ( { code : ExportResultCode . FAILED } ) ) . toBe ( true ) ;
169169 } ) ;
170170
171171 it ( 'should forceFlush without throwing' , async ( ) => {
172- expect ( AwsXrayUdpSpanExporter . forceFlush ( ) ) . resolves . not . toThrow ( ) ;
172+ expect ( awsXrayUdpSpanExporter . forceFlush ( ) ) . resolves . not . toThrow ( ) ;
173173 } ) ;
174174
175175 it ( 'should shutdown the UDP exporter successfully' , async ( ) => {
176- await AwsXrayUdpSpanExporter . shutdown ( ) ;
176+ await awsXrayUdpSpanExporter . shutdown ( ) ;
177177 expect ( udpExporterMock . shutdown . calledOnce ) . toBe ( true ) ;
178178 } ) ;
179179
0 commit comments