Turn off jQuery animations when testing

This commit is contained in:
Christoph Wurst 2016-04-18 10:41:02 +02:00
parent 3e1f1ccc76
commit 5900e46f01
No known key found for this signature in database
GPG key ID: FEECD2543CA6EAF0

View file

@ -470,6 +470,7 @@ describe('Core base tests', function() {
var $navigation;
beforeEach(function() {
jQuery.fx.off = true;
clock = sinon.useFakeTimers();
$('#testArea').append('<div id="header">' +
'<a class="menutoggle header-appname-container" href="#">' +
@ -482,6 +483,7 @@ describe('Core base tests', function() {
$navigation = $('#navigation');
});
afterEach(function() {
jQuery.fx.off = false;
clock.restore();
$(document).off('ajaxError');
});