@@ -355,35 +355,36 @@ describe('BrowserTracing', () => {
355355 } ) ;
356356 } ) ;
357357 } ) ;
358- } ) ;
359358
360- describe ( 'sentry-trace <meta> element' , ( ) => {
361- describe ( 'getMetaContent' , ( ) => {
362- it ( 'finds the specified tag and extracts the value' , ( ) => {
363- const name = 'sentry-trace' ;
364- const content = '126de09502ae4e0fb26c6967190756a4-b6e54397b12a2a0f-1' ;
365- document . head . innerHTML = `<meta name="${ name } " content="${ content } ">` ;
359+ describe ( 'sentry-trace <meta> element' , ( ) => {
360+ describe ( 'getMetaContent' , ( ) => {
361+ it ( 'finds the specified tag and extracts the value' , ( ) => {
362+ const name = 'sentry-trace' ;
363+ const content = '126de09502ae4e0fb26c6967190756a4-b6e54397b12a2a0f-1' ;
364+ document . head . innerHTML = `<meta name="${ name } " content="${ content } ">` ;
366365
367- const metaTagValue = getMetaContent ( name ) ;
368- expect ( metaTagValue ) . toBe ( content ) ;
369- } ) ;
366+ const metaTagValue = getMetaContent ( name ) ;
367+ expect ( metaTagValue ) . toBe ( content ) ;
368+ } ) ;
370369
371- it ( "doesn't return meta tags other than the one specified" , ( ) => {
372- document . head . innerHTML = `<meta name="cat-cafe">` ;
370+ it ( "doesn't return meta tags other than the one specified" , ( ) => {
371+ document . head . innerHTML = `<meta name="cat-cafe">` ;
373372
374- const metaTagValue = getMetaContent ( 'dogpark' ) ;
375- expect ( metaTagValue ) . toBe ( null ) ;
376- } ) ;
373+ const metaTagValue = getMetaContent ( 'dogpark' ) ;
374+ expect ( metaTagValue ) . toBe ( null ) ;
375+ } ) ;
377376
378- it ( 'can pick the correct tag out of multiple options' , ( ) => {
379- const name = 'sentry-trace' ;
380- const content = '126de09502ae4e0fb26c6967190756a4-b6e54397b12a2a0f-1' ;
381- const sentryTraceMeta = `<meta name="${ name } " content="${ content } ">` ;
382- const otherMeta = `<meta name="cat-cafe">` ;
383- document . head . innerHTML = `${ sentryTraceMeta } ${ otherMeta } ` ;
377+ it ( 'can pick the correct tag out of multiple options' , ( ) => {
378+ const name = 'sentry-trace' ;
379+ const content = '126de09502ae4e0fb26c6967190756a4-b6e54397b12a2a0f-1' ;
380+ const sentryTraceMeta = `<meta name="${ name } " content="${ content } ">` ;
381+ const otherMeta = `<meta name="cat-cafe">` ;
382+ document . head . innerHTML = `${ sentryTraceMeta } ${ otherMeta } ` ;
384383
385- const metaTagValue = getMetaContent ( name ) ;
386- expect ( metaTagValue ) . toBe ( content ) ;
384+ const metaTagValue = getMetaContent ( name ) ;
385+ expect ( metaTagValue ) . toBe ( content ) ;
386+ } ) ;
387387 } ) ;
388+
388389 } ) ;
389390} ) ;
0 commit comments