Skip to content

Commit c31d665

Browse files
committed
use opt chaining instead of .at
1 parent bcbb212 commit c31d665

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

+1-1
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

+1-1
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)