From 161bf811cd2867dbcaf5a77beb4f2c42da7c5334 Mon Sep 17 00:00:00 2001 From: Perry Govier Date: Fri, 12 Dec 2014 11:41:26 -0600 Subject: [PATCH] test(header): has-tabs-top test accounts for footer --- test/unit/angular/directive/headerFooterBar.unit.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/angular/directive/headerFooterBar.unit.js b/test/unit/angular/directive/headerFooterBar.unit.js index e502b20e00..c04f127096 100644 --- a/test/unit/angular/directive/headerFooterBar.unit.js +++ b/test/unit/angular/directive/headerFooterBar.unit.js @@ -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); + } })); }