From 2bfdbd92f58fce5958fc72e57729a541e2b67bf0 Mon Sep 17 00:00:00 2001 From: Matt Lane Date: Mon, 13 Feb 2017 10:29:26 -0800 Subject: [PATCH] Stub pixel drop to prevent network request in test --- test/spec/adapters/openx_spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/spec/adapters/openx_spec.js b/test/spec/adapters/openx_spec.js index 8f037a8721e..50d71064da7 100644 --- a/test/spec/adapters/openx_spec.js +++ b/test/spec/adapters/openx_spec.js @@ -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 () {