Skip to content

Commit

Permalink
test(Ads): Add more basic Interstitials unit tests (#7674)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Nov 27, 2024
1 parent 9bce9d7 commit 7caa4a1
Show file tree
Hide file tree
Showing 2 changed files with 514 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,16 @@ shaka.ads.InterstitialAdManager = class {
const response = await op.promise;
return response.data;
}


/**
* Only for testing
*
* @return {!Array.<shaka.extern.AdInterstitial>}
*/
getInterstitials() {
return Array.from(this.interstitials_);
}
};


Expand Down
Loading

0 comments on commit 7caa4a1

Please sign in to comment.