Preventing unnecessary logging when running tests
This commit is contained in:
parent
facd4f6ac4
commit
d7d1a78656
@ -1,3 +1,4 @@
|
|||||||
|
// Setup (and teardown) SVG container template
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
var template = document.createElement('script');
|
var template = document.createElement('script');
|
||||||
template.setAttribute('type', 'text/html');
|
template.setAttribute('type', 'text/html');
|
||||||
@ -12,3 +13,8 @@ beforeEach(function() {
|
|||||||
afterEach(function() {
|
afterEach(function() {
|
||||||
document.body.removeChild(document.body.querySelector('#svg-container-base'));
|
document.body.removeChild(document.body.querySelector('#svg-container-base'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Spy on _gaq.push to prevent unnecessary logging
|
||||||
|
window._gaq = {
|
||||||
|
push() {}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user