From 31224ed19b624c5c639bf59f17abcd67061e6768 Mon Sep 17 00:00:00 2001 From: andrey_ka_97 Date: Fri, 20 Aug 2021 13:46:28 +0300 Subject: [PATCH] update AFP Adapter and add page examples --- test/spec/modules/afpBidAdapter_spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/modules/afpBidAdapter_spec.js b/test/spec/modules/afpBidAdapter_spec.js index 49990acbd6a..3937c0f6f05 100644 --- a/test/spec/modules/afpBidAdapter_spec.js +++ b/test/spec/modules/afpBidAdapter_spec.js @@ -124,9 +124,9 @@ describe('AFP Adapter', function() { describe('isBidRequestValid method', function() { describe('returns true', function() { describe('when config has all mandatory params', () => { - Object.entries(configByPlaceType).forEach(([placeType, config]) => { + Object.keys(configByPlaceType).forEach(placeType => { it(`and ${placeType} config has the correct value`, function() { - const isBidRequestValid = spec.isBidRequestValid(config) + const isBidRequestValid = spec.isBidRequestValid(configByPlaceType[placeType]) expect(isBidRequestValid).to.equal(true) }) })