Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4bec57d

Browse files
committedFeb 14, 2025
use opt chaining instead of .at
1 parent cdf49b4 commit 4bec57d

File tree

2 files changed

+2
-2
lines changed
  • dev-packages/node-integration-tests/suites/tracing/http-client-spans

2 files changed

+2
-2
lines changed
 

‎dev-packages/node-integration-tests/suites/tracing/http-client-spans/fetch-strip-query/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('strips and handles query params in spans of outgoing fetch requests', done
1717
transaction: txn => {
1818
expect(txn.transaction).toEqual('test_transaction');
1919
expect(txn.spans).toHaveLength(1);
20-
expect(txn.spans?.at(0)).toMatchObject({
20+
expect(txn.spans?.[0]).toMatchObject({
2121
data: {
2222
url: `${SERVER_URL}/api/v0/users`,
2323
'url.full': `${SERVER_URL}/api/v0/users?id=1`,

‎dev-packages/node-integration-tests/suites/tracing/http-client-spans/http-strip-query/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('strips and handles query params in spans of outgoing http requests', done
1717
transaction: txn => {
1818
expect(txn.transaction).toEqual('test_transaction');
1919
expect(txn.spans).toHaveLength(1);
20-
expect(txn.spans?.at(0)).toMatchObject({
20+
expect(txn.spans?.[0]).toMatchObject({
2121
data: {
2222
url: `${SERVER_URL}/api/v0/users`,
2323
'http.url': `${SERVER_URL}/api/v0/users?id=1`,

0 commit comments

Comments
 (0)
Please sign in to comment.