@@ -5,15 +5,15 @@ import { WINDOW } from '../../../src/browser/types';
5
5
6
6
const mockWindowLocation = {
7
7
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 : '' ,
17
17
} as Window [ 'location' ] ;
18
18
19
19
const originalWindowLocation = WINDOW . location ;
@@ -63,11 +63,11 @@ describe('_addResourceSpans', () => {
63
63
64
64
beforeAll ( ( ) => {
65
65
WINDOW . location = mockWindowLocation ;
66
- } )
66
+ } ) ;
67
67
68
68
afterAll ( ( ) => {
69
69
WINDOW . location = originalWindowLocation ;
70
- } )
70
+ } ) ;
71
71
72
72
beforeEach ( ( ) => {
73
73
// eslint-disable-next-line deprecation/deprecation
@@ -222,14 +222,13 @@ describe('_addResourceSpans', () => {
222
222
// eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation
223
223
expect ( transaction . startChild ) . toHaveBeenLastCalledWith (
224
224
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' ,
227
227
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
+ } ) ,
233
232
) ;
234
233
} ) ;
235
234
@@ -250,12 +249,12 @@ describe('_addResourceSpans', () => {
250
249
// eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation
251
250
expect ( transaction . startChild ) . toHaveBeenLastCalledWith (
252
251
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' ,
255
254
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 ,
259
258
} ) ,
260
259
) ;
261
260
} ) ;
0 commit comments