Skip to content

Commit

Permalink
Stub pixel drop to prevent network request in test (prebid#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlane authored and Will Alexander committed Mar 6, 2017
1 parent be8d37e commit 3670132
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/spec/adapters/openx_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ describe('openx adapter tests', function () {
const adloader = require('src/adloader');
const CONSTANTS = require('src/constants.json');

before(() => sinon.stub(document.body, 'appendChild'));
after(() => document.body.appendChild.restore());

describe('test openx callback responce', function () {

it('should exist and be a function', function () {
Expand Down

0 comments on commit 3670132

Please sign in to comment.