From 6bd882b2ed2147b08073f8926bf79acfe044dcca Mon Sep 17 00:00:00 2001 From: Thomas Hunter II Date: Wed, 14 Feb 2024 12:27:55 -0800 Subject: [PATCH] fix node v14 compat for #4041 contribution (#4064) --- packages/dd-trace/test/datastreams/writer.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dd-trace/test/datastreams/writer.spec.js b/packages/dd-trace/test/datastreams/writer.spec.js index bf8cd941a14..4cfd4dd87e6 100644 --- a/packages/dd-trace/test/datastreams/writer.spec.js +++ b/packages/dd-trace/test/datastreams/writer.spec.js @@ -33,7 +33,7 @@ describe('DataStreamWriter unix', () => { it("should call 'request' through flush with correct options", () => { writer = new DataStreamsWriter(unixConfig) writer.flush({}) - const stubRequestCall = stubRequest.getCalls().at(0) + const stubRequestCall = stubRequest.getCalls()[0] const decodedPayload = msgpack.decode(stubRequestCall?.args[0], { codec }) const requestOptions = stubRequestCall?.args[1] expect(decodedPayload).to.deep.equal({})