Commit b0553187 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit test fixed

parent bc829e35
......@@ -64,7 +64,13 @@ describe('Header', function () {
return header.init().then(function () {
assert.ok($(".dropdown-menu").css('display') === 'none');
return $(".minerva-menu-link", testDiv)[0].onclick();
var fun = null;
$(".minerva-menu-link", testDiv).each(function (k, v) {
if (v.innerHTML.indexOf("fa-bars") >= 0) {
fun = v.onclick;
}
});
return fun();
}).then(function () {
assert.notOk($(".dropdown-menu").css('display') === 'none');
return header.destroy();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment