mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
More tests and tab item building
This commit is contained in:
@ -4,7 +4,7 @@ describe('TabBarController', function() {
|
||||
beforeEach(function() {
|
||||
var tabEl = $('<div class="tabs"></div>');
|
||||
ctrl = new TabBarController({
|
||||
tabBar: new TabBar({ el: tabEl })
|
||||
tabBar: new TabBar({ el: tabEl.get(0) })
|
||||
});
|
||||
})
|
||||
|
||||
@ -56,7 +56,7 @@ describe('TabBarController', function() {
|
||||
it('Should allow cancelling Controller switch', function() {
|
||||
var tabEl = $('<div class="tabs"></div>');
|
||||
ctrl = new TabBarController({
|
||||
tabBar: new TabBar({ el: tabEl }),
|
||||
tabBar: new TabBar({ el: tabEl.get(0) }),
|
||||
controllerWillChange: function(Controller) { return false; }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user