Skip to content

Commit d110c4e

Browse files
committed
run yarn fix
1 parent 06ea035 commit d110c4e

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

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

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import { WINDOW } from '../../../src/browser/types';
55

66
const mockWindowLocation = {
77
ancestorOrigins: {},
8-
href: "https://example.com/path/to/something",
9-
origin: "https://example.com",
10-
protocol: "https",
11-
host: "example.com",
12-
hostname: "example.com",
13-
port: "",
14-
pathname: "/path/to/something",
15-
search: "",
16-
hash: ""
8+
href: 'https://example.com/path/to/something',
9+
origin: 'https://example.com',
10+
protocol: 'https',
11+
host: 'example.com',
12+
hostname: 'example.com',
13+
port: '',
14+
pathname: '/path/to/something',
15+
search: '',
16+
hash: '',
1717
} as Window['location'];
1818

1919
const originalWindowLocation = WINDOW.location;
@@ -63,11 +63,11 @@ describe('_addResourceSpans', () => {
6363

6464
beforeAll(() => {
6565
WINDOW.location = mockWindowLocation;
66-
})
66+
});
6767

6868
afterAll(() => {
6969
WINDOW.location = originalWindowLocation;
70-
})
70+
});
7171

7272
beforeEach(() => {
7373
// eslint-disable-next-line deprecation/deprecation
@@ -222,14 +222,13 @@ describe('_addResourceSpans', () => {
222222
// eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation
223223
expect(transaction.startChild).toHaveBeenLastCalledWith(
224224
expect.objectContaining({
225-
data: { "server.address": "example.com", "url.same_origin": true, "url.scheme": "https" },
226-
description: "/assets/to/css",
225+
data: { 'server.address': 'example.com', 'url.same_origin': true, 'url.scheme': 'https' },
226+
description: '/assets/to/css',
227227
endTimestamp: 468,
228-
op: "resource.css",
229-
origin: "auto.resource.browser.metrics",
230-
startTimestamp: 445
231-
}
232-
),
228+
op: 'resource.css',
229+
origin: 'auto.resource.browser.metrics',
230+
startTimestamp: 445,
231+
}),
233232
);
234233
});
235234

@@ -250,12 +249,12 @@ describe('_addResourceSpans', () => {
250249
// eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation
251250
expect(transaction.startChild).toHaveBeenLastCalledWith(
252251
expect.objectContaining({
253-
data: { "server.address": "example.com", "url.same_origin": true, "url.scheme": "https" },
254-
description: "/assets/to/css",
252+
data: { 'server.address': 'example.com', 'url.same_origin': true, 'url.scheme': 'https' },
253+
description: '/assets/to/css',
255254
endTimestamp: 468,
256-
op: "resource.css",
257-
origin: "auto.resource.browser.metrics",
258-
startTimestamp: 445
255+
op: 'resource.css',
256+
origin: 'auto.resource.browser.metrics',
257+
startTimestamp: 445,
259258
}),
260259
);
261260
});

0 commit comments

Comments
 (0)