Skip to content

Commit

Permalink
fix(tests): fix tests after loadPlayer API changed (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv authored Oct 2, 2017
1 parent b9ff738 commit 432af1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ function loadPlayerWithAds(targetId, imaConfig, playbackConfig) {
if (playbackConfig) {
config.playback = playbackConfig;
}
return loadPlayer(targetId, config);
let player = loadPlayer(config);
document.getElementById(targetId).appendChild(player.getView());
return player;
}

/**
Expand Down Expand Up @@ -84,7 +86,7 @@ function registerCompanionSlots() {
});
}

export {
export {
loadPlayerWithAds,
maybeDoneTest,
loadGPT,
Expand Down

0 comments on commit 432af1f

Please sign in to comment.