Skip to content

Commit

Permalink
fix failing unit test within quantcastBidAdapter (#2879)
Browse files Browse the repository at this point in the history
* fix failing unit test for quantcastBidAdapter

* rename variable to be clearer

* using alternate approach
  • Loading branch information
jsnellbaker authored Jul 23, 2018
1 parent 1b41bce commit 8f4fc07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/spec/modules/quantcastBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
spec as qcSpec
} from '../../../modules/quantcastBidAdapter';
import { newBidder } from '../../../src/adapters/bidderFactory';
import { parse } from 'src/url';

describe('Quantcast adapter', () => {
const quantcastAdapter = newBidder(qcSpec);
Expand Down Expand Up @@ -71,7 +72,7 @@ describe('Quantcast adapter', () => {

it('sends bid requests to Quantcast Canary Endpoint if `publisherId` is `test-publisher`', () => {
const requests = qcSpec.buildRequests([bidRequest]);
const url = new URL(requests[0]['url']);
const url = parse(requests[0]['url']);
expect(url.hostname).to.equal(QUANTCAST_TEST_DOMAIN);
});

Expand Down

0 comments on commit 8f4fc07

Please sign in to comment.