Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamma Support UserSync Endpoint #2216

Merged
merged 24 commits into from
Mar 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add files via upload
  • Loading branch information
gammassp authored Feb 5, 2018
commit f63f0ec3fff80ff5e838ad297045832ffa3da16c
7 changes: 3 additions & 4 deletions test/spec/modules/gammaBidAdapter_spec.js
Original file line number Diff line number Diff line change
@@ -63,13 +63,12 @@ describe('gammaBidAdapter', function() {
const request = spec.buildRequests(bidRequests);

it('sends bid request to our endpoint via GET', () => {
expect(request[0].method).to.equal('GET');
expect(request[0].url).to.match(new RegExp(`//${request[0].params.gaxDomain}/adx/request`));
expect(request.method).to.equal('GET');
expect(request.url).to.match(new RegExp(`//${request[0].params.gaxDomain}/adx/request`));
});

it('attaches source to endpoint URL as query params', () => {

expect(request[0].url).to.include('wid=' + request[0].params.siteId + '&zid=' + request[0].params.zoneId + '&hb=pbjs&bidid=' + request[0].bidId + '&urf=' + utils.getTopWindowUrl());
expect(request.url).to.include('wid=' + request.params.siteId + '&zid=' + request.params.zoneId + '&hb=pbjs&bidid=' + request.bidId + '&urf=' + utils.getTopWindowUrl());
});
});