mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(ionView): initialize hideBack/hideNav to false if undefined
Addresses comments in #1157
This commit is contained in:
@@ -57,6 +57,11 @@ describe('ionView directive', function() {
|
||||
expect(el.controller('ionNavBar').showBackButton).toHaveBeenCalledWith(true);
|
||||
});
|
||||
|
||||
it('should show back button by default', function() {
|
||||
var el = setup();
|
||||
expect(el.controller('ionNavBar').showBackButton).toHaveBeenCalledWith(true);
|
||||
});
|
||||
|
||||
it('should showBar depending on what is given', function() {
|
||||
var el = setup('hide-nav-bar="shouldHide"');
|
||||
expect(el.controller('ionNavBar').showBar).toHaveBeenCalledWith(true);
|
||||
@@ -66,6 +71,11 @@ describe('ionView directive', function() {
|
||||
expect(el.controller('ionNavBar').showBar).toHaveBeenCalledWith(true);
|
||||
});
|
||||
|
||||
it('should showBar by default', function() {
|
||||
var el = setup();
|
||||
expect(el.controller('ionNavBar').showBar).toHaveBeenCalledWith(true);
|
||||
});
|
||||
|
||||
it('should setTitle on change, but not with initial value', function() {
|
||||
var el = setup('title="{{something}}-1"');
|
||||
//Should not setTitle with initial value
|
||||
|
||||
Reference in New Issue
Block a user