Skip to content

Commit

Permalink
PulsePoint Lite adapter - adding createNew method for aliasing. (#1383)
Browse files Browse the repository at this point in the history
* 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 #509

* ET-1765: Adding support for additional params in PulsePoint adapter (#2)

* ET-1850: Fixing #866

* Minor fix

* Adding createNew method on the adapter for aliasing
  • Loading branch information
anand-venkatraman authored and Matt Kendall committed Jul 17, 2017
1 parent 4b04890 commit d468f33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/pulsepointLiteBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions test/spec/modules/pulsepointLiteBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit d468f33

Please sign in to comment.