From d468f33af7fb918910bcdef54b3c01f3e24d5ac2 Mon Sep 17 00:00:00 2001 From: Anand Venkatraman Date: Mon, 17 Jul 2017 23:10:39 +0530 Subject: [PATCH] PulsePoint Lite adapter - adding createNew method for aliasing. (#1383) * ET-1691: Pulsepoint Analytics adapter for Prebid. (#1) * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: cleanup * ET-1691: minor * ET-1691: revert package.json change * Adding bidRequest to bidFactory.createBid method as per https://github.com/prebid/Prebid.js/issues/509 * ET-1765: Adding support for additional params in PulsePoint adapter (#2) * ET-1850: Fixing https://github.com/prebid/Prebid.js/issues/866 * Minor fix * Adding createNew method on the adapter for aliasing --- modules/pulsepointLiteBidAdapter.js | 3 +++ test/spec/modules/pulsepointLiteBidAdapter_spec.js | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/modules/pulsepointLiteBidAdapter.js b/modules/pulsepointLiteBidAdapter.js index b9ce3aacb56..dd04c982e0f 100644 --- a/modules/pulsepointLiteBidAdapter.js +++ b/modules/pulsepointLiteBidAdapter.js @@ -285,6 +285,9 @@ function PulsePointLiteAdapter() { }; } +PulsePointLiteAdapter.createNew = function() { + return new PulsePointLiteAdapter(); +} /** * "pulseLite" will be the adapter name going forward. "pulsepointLite" to be * deprecated, but kept here for backwards compatibility. diff --git a/test/spec/modules/pulsepointLiteBidAdapter_spec.js b/test/spec/modules/pulsepointLiteBidAdapter_spec.js index 9532685a037..2a8b09245a2 100644 --- a/test/spec/modules/pulsepointLiteBidAdapter_spec.js +++ b/test/spec/modules/pulsepointLiteBidAdapter_spec.js @@ -226,4 +226,9 @@ describe('PulsePoint Lite Adapter Tests', () => { expect(bid.native.impressionTrackers[0]).to.equal('http://imp1.trackme.com/'); expect(bid.native.impressionTrackers[1]).to.equal('http://imp1.contextweb.com/'); }); + + it('Verify createNew', function () { + const adapter = PulsePointAdapter.createNew(); + expect(adapter).to.have.property('callBids'); + }); });