fix first failing test

This commit is contained in:
Morris Jobke 2014-06-05 00:40:15 +02:00
parent 210a1ef7e6
commit e3cbcadbd8
1 changed files with 1 additions and 2 deletions

View File

@ -367,7 +367,7 @@ describe('Core base tests', function() {
'<a id="owncloud" href="#"></a>' + '<a id="owncloud" href="#"></a>' +
'</div>' + '</div>' +
'<div id="navigation"></div>'); '<div id="navigation"></div>');
$toggle = $('#owncloud'); $toggle = $('#header').find('.menutoggle');
$navigation = $('#navigation'); $navigation = $('#navigation');
}); });
afterEach(function() { afterEach(function() {
@ -375,7 +375,6 @@ describe('Core base tests', function() {
}); });
it('Sets up menu toggle', function() { it('Sets up menu toggle', function() {
window.initCore(); window.initCore();
expect($toggle.hasClass('menutoggle')).toEqual(true);
expect($navigation.hasClass('menu')).toEqual(true); expect($navigation.hasClass('menu')).toEqual(true);
}); });
it('Clicking menu toggle toggles navigation in', function() { it('Clicking menu toggle toggles navigation in', function() {