@@ -283,7 +283,7 @@ describe('service', function () {
283283
284284 // Assert
285285 var report = powerbi . get ( $reportContainer [ 0 ] ) ;
286- var accessToken = report . getConfig ( ) . accessToken ;
286+ var accessToken = report . config . accessToken ;
287287
288288 expect ( accessToken ) . toEqual ( testToken ) ;
289289
@@ -343,7 +343,7 @@ describe('service', function () {
343343 const report = powerbi . embed ( $reportContainer [ 0 ] , { id : testReportId } ) ;
344344
345345 // Assert
346- expect ( report . getConfig ( ) . id ) . toEqual ( testReportId ) ;
346+ expect ( report . config . id ) . toEqual ( testReportId ) ;
347347 } ) ;
348348
349349 it ( 'should fallback to using id from attribute if not supplied in embed/load configuration' , function ( ) {
@@ -357,7 +357,7 @@ describe('service', function () {
357357 const report = powerbi . embed ( $reportContainer [ 0 ] ) ;
358358
359359 // Assert
360- expect ( report . getConfig ( ) . id ) . toEqual ( testReportId ) ;
360+ expect ( report . config . id ) . toEqual ( testReportId ) ;
361361 } ) ;
362362
363363 it ( 'should fallback to using id from embedUrl if not supplied in embed/load configuration or attribute' , function ( ) {
@@ -371,7 +371,7 @@ describe('service', function () {
371371 const report = powerbi . embed ( $reportContainer [ 0 ] ) ;
372372
373373 // Assert
374- expect ( report . getConfig ( ) . id ) . toEqual ( testReportId ) ;
374+ expect ( report . config . id ) . toEqual ( testReportId ) ;
375375 } ) ;
376376 } ) ;
377377
@@ -2484,7 +2484,7 @@ describe('SDK-to-HPM', function () {
24842484 embedUrl : iframeSrc
24852485 } ;
24862486 report = < report . Report > powerbi . embed ( $element [ 0 ] , embedConfiguration ) ;
2487- uniqueId = report . getConfig ( ) . uniqueId ;
2487+ uniqueId = report . config . uniqueId ;
24882488
24892489 iframe = < HTMLIFrameElement > $element . find ( 'iframe' ) [ 0 ] ;
24902490
@@ -3339,7 +3339,7 @@ describe('SDK-to-WPMP', function () {
33393339 wpmpName : 'SDK-to-WPMP report wpmp'
33403340 } ;
33413341 report = < report . Report > powerbi . embed ( $element [ 0 ] , embedConfiguration ) ;
3342- uniqueId = report . getConfig ( ) . uniqueId ;
3342+ uniqueId = report . config . uniqueId ;
33433343
33443344 iframe = < HTMLIFrameElement > $element . find ( 'iframe' ) [ 0 ] ;
33453345
@@ -4307,7 +4307,7 @@ describe('SDK-to-MockApp', function () {
43074307 report2 . on ( testData . eventName , testData . handler2 ) ;
43084308
43094309 // Act
4310- iframeHpm . post ( `/reports/${ report2 . getConfig ( ) . uniqueId } /events/${ testData . eventName } ` , testData . simulatedPageChangeBody )
4310+ iframeHpm . post ( `/reports/${ report2 . config . uniqueId } /events/${ testData . eventName } ` , testData . simulatedPageChangeBody )
43114311 . then ( response => {
43124312 // Assert
43134313 expect ( testData . handler2 ) . toHaveBeenCalledWith ( testData . simulatedPageChangeBody ) ;
0 commit comments