Fixed tests and removed DOM call from TabBarController

This commit is contained in:
Max Lynch
2013-09-16 11:26:54 -05:00
parent 6c32a638ad
commit 61125473de
4 changed files with 8 additions and 5 deletions

View File

@ -52,7 +52,7 @@ describe('TabBar view', function() {
it('Should handle item click event', function() {
var item = items[0];
spyOn(tabBar, 'selectItem');
spyOn(tabBar, 'trySelectItem');
var event = new CustomEvent('tap', {
target: item.el
@ -60,7 +60,7 @@ describe('TabBar view', function() {
item.el.dispatchEvent(event);
//expect(item.onTap).toHaveBeenCalled();
expect(tabBar.selectItem).toHaveBeenCalled();
expect(tabBar.trySelectItem).toHaveBeenCalled();
});