Skip to content

Commit e0cbd90

Browse files
committed
update test 2
1 parent 0204e6e commit e0cbd90

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

packages/tracing-internal/test/browser/metrics/index.test.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,14 @@ describe('_addResourceSpans', () => {
213213
// eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation
214214
expect(transaction.startChild).toHaveBeenLastCalledWith(
215215
expect.objectContaining({
216-
data: {},
217-
}),
216+
data: { "server.address": "example.com", "url.same_origin": true, "url.scheme": "https" },
217+
description: "/assets/to/css",
218+
endTimestamp: 468,
219+
op: "resource.css",
220+
origin: "auto.resource.browser.metrics",
221+
startTimestamp: 445
222+
}
223+
),
218224
);
219225
});
220226

@@ -236,6 +242,11 @@ describe('_addResourceSpans', () => {
236242
expect(transaction.startChild).toHaveBeenLastCalledWith(
237243
expect.objectContaining({
238244
data: { "server.address": "example.com", "url.same_origin": true, "url.scheme": "https" },
245+
description: "/assets/to/css",
246+
endTimestamp: 468,
247+
op: "resource.css",
248+
origin: "auto.resource.browser.metrics",
249+
startTimestamp: 445
239250
}),
240251
);
241252
});

0 commit comments

Comments
 (0)