From 03faebcafde86508917d88ec9e47e2e93e6aefa2 Mon Sep 17 00:00:00 2001 From: "david.fogas" Date: Mon, 12 Oct 2020 13:23:08 +0200 Subject: [PATCH] change naming of context prop to ctx --- modules/stroeerCoreBidAdapter.js | 2 +- test/spec/modules/stroeerCoreBidAdapter_spec.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/stroeerCoreBidAdapter.js b/modules/stroeerCoreBidAdapter.js index 43e9cec7d78..682896bf97e 100644 --- a/modules/stroeerCoreBidAdapter.js +++ b/modules/stroeerCoreBidAdapter.js @@ -200,7 +200,7 @@ export const spec = { sid: bid.params.sid, siz: bidSizes(bid), viz: elementInView(bid.adUnitCode), - context: { + ctx: { position: bid.adUnitCode, adUnits: getAdUnits(bid.adUnitCode), zone: getZone(bid.adUnitCode), diff --git a/test/spec/modules/stroeerCoreBidAdapter_spec.js b/test/spec/modules/stroeerCoreBidAdapter_spec.js index 5465217fad1..3d10abe8e01 100644 --- a/test/spec/modules/stroeerCoreBidAdapter_spec.js +++ b/test/spec/modules/stroeerCoreBidAdapter_spec.js @@ -474,7 +474,7 @@ describe('stroeerCore bid adapter', function () { 'bid': 'bid1', 'siz': [[300, 600], [160, 60]], 'viz': true, - 'context': { + 'ctx': { 'position': 'div-1' } }, { @@ -482,7 +482,7 @@ describe('stroeerCore bid adapter', function () { 'bid': 'bid2', 'siz': [[728, 90]], 'viz': true, - 'context': { + 'ctx': { 'position': 'div-2' } }], @@ -514,14 +514,14 @@ describe('stroeerCore bid adapter', function () { const serverRequestInfo = spec.buildRequests(bidReq.bids, bidReq); - assert.deepEqual(serverRequestInfo.data.bids[0].context, { + assert.deepEqual(serverRequestInfo.data.bids[0].ctx, { 'position': 'div-1', 'adUnits': ['adUnit-1', 'adUnit-2'], 'zone': 'zone-1', 'pageType': 'pageType-1' }); - assert.deepEqual(serverRequestInfo.data.bids[1].context, { + assert.deepEqual(serverRequestInfo.data.bids[1].ctx, { 'position': 'div-2', 'adUnits': ['adUnit-3', 'adUnit-4', 'adUnit-5'], 'zone': 'zone-2',