From d7d1a78656062494ecc213ac9adbb73add476b19 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 30 Dec 2014 16:37:52 -0500 Subject: [PATCH] Preventing unnecessary logging when running tests --- spec/setup_spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/setup_spec.js b/spec/setup_spec.js index c9342e2..69ec0a4 100644 --- a/spec/setup_spec.js +++ b/spec/setup_spec.js @@ -1,3 +1,4 @@ +// Setup (and teardown) SVG container template beforeEach(function() { var template = document.createElement('script'); template.setAttribute('type', 'text/html'); @@ -12,3 +13,8 @@ beforeEach(function() { afterEach(function() { document.body.removeChild(document.body.querySelector('#svg-container-base')); }); + +// Spy on _gaq.push to prevent unnecessary logging +window._gaq = { + push() {} +}