Preventing unnecessary logging when running tests

This commit is contained in:
Jeff Avallone 2014-12-30 16:37:52 -05:00
parent facd4f6ac4
commit d7d1a78656

View File

@ -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() {}
}