@@ -290,11 +290,7 @@ describe('service', function () {
290
290
291
291
// Assert
292
292
var report = powerbi . get ( $reportContainer [ 0 ] ) ;
293
- // TODO: Find way to prevent using private method getAccessToken.
294
- // Need to know what token the report used, but don't have another option?
295
- // To properly only test public methods but still confirm this we would need to create special iframe which echoed all
296
- // messages and then we could test what it received
297
- var accessToken = ( < any > report ) . getAccessToken ( ) ;
293
+ var accessToken = report . config . accessToken ;
298
294
299
295
expect ( accessToken ) . toEqual ( testToken ) ;
300
296
} ) ;
@@ -1742,7 +1738,7 @@ describe('SDK-to-HPM', function () {
1742
1738
} ) ;
1743
1739
1744
1740
afterAll ( function ( ) {
1745
- // TODO: Should call remove using the powerbi service first to clean up intenral references to DOM inside this element
1741
+ powerbi . reset ( $ element. get ( 0 ) ) ;
1746
1742
$element . remove ( ) ;
1747
1743
powerbi . wpmp . stop ( ) ;
1748
1744
} ) ;
@@ -2722,7 +2718,7 @@ describe('SDK-to-WPMP', function () {
2722
2718
} ) ;
2723
2719
2724
2720
afterAll ( function ( ) {
2725
- // TODO: Should call remove using the powerbi service first to clean up intenral references to DOM inside this element
2721
+ powerbi . reset ( $ element. get ( 0 ) ) ;
2726
2722
$element . remove ( ) ;
2727
2723
powerbi . wpmp . stop ( ) ;
2728
2724
} ) ;
@@ -2949,7 +2945,7 @@ describe('SDK-to-MockApp', function () {
2949
2945
} ) ;
2950
2946
2951
2947
afterAll ( function ( ) {
2952
- // TODO: Should call remove using the powerbi service first to clean up intenral references to DOM inside this element
2948
+ powerbi . reset ( $ element. get ( 0 ) ) ;
2953
2949
$element . remove ( ) ;
2954
2950
powerbi . wpmp . stop ( ) ;
2955
2951
} ) ;
@@ -2961,10 +2957,6 @@ describe('SDK-to-MockApp', function () {
2961
2957
describe ( 'report' , function ( ) {
2962
2958
describe ( 'load' , function ( ) {
2963
2959
it ( `report.load() returns promise that rejects with validation errors if load configuration is invalid` , function ( done ) {
2964
- /**
2965
- * TODO: Add settings to load config
2966
- */
2967
-
2968
2960
// Arrange
2969
2961
const testData = {
2970
2962
loadConfig : {
0 commit comments