test/spec/nativeAssetManager_spec.js
// creates mock postmessage response from prebid's native.js:getAssetMessage
creates mock postmessage response from prebid's native.js:getAssetMessage
creates mock postmessage response from prebid ' s native . js : getAssetMessage
function createResponder(assets) {
  return function(type, listener) {
    if (type !== 'message') { return; }
    const data = { message: 'assetResponse', adId: AD_ID, assets };
    listener({ data: JSON.stringify(data) });
  };
}
function createResponder ( assets ) { return function ( type , listener ) { if ( type !== 'message' ) { return ; } const data = { message : 'assetResponse' , adId : AD_ID , assets } ; listener ( { data : JSON . stringify ( data ) } ) ; } ; }
creates mock postmessage response from prebid's native.js:getAssetMessage
creates mock postmessage response from prebid ' s native . js : getAssetMessage