test(header): has-tabs-top test accounts for footer

This commit is contained in:
Perry Govier
2014-12-12 11:41:26 -06:00
parent b6e2fbad88
commit 161bf811cd

View File

@@ -164,8 +164,10 @@ describe('bar directives', function() {
var el = setup();
$document[0].body.appendChild(el[0]);
expect(el.hasClass('has-tabs-top')).toBe(false);
$timeout.flush();
expect(el.hasClass('has-tabs-top')).toBe(true);
if (data.tag === 'ion-header-bar') {
$timeout.flush();
expect(el.hasClass('has-tabs-top')).toBe(true);
}
}));
}