mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
update how view's set titles, closes #337
This commit is contained in:
@@ -779,12 +779,9 @@ describe('Ionic View Service', function() {
|
||||
opts.leavingElement = opts.parentElement.find('leaving');
|
||||
opts.enteringElement = $compile("<entering>entering</entering>")(rootScope);
|
||||
|
||||
spyOn(rootScope, '$broadcast');
|
||||
expect(opts.parentElement.html()).toContain("leaving");
|
||||
viewService.transition(opts);
|
||||
expect(opts.parentElement.html()).toContain("entering");
|
||||
|
||||
expect(rootScope.$broadcast).toHaveBeenCalledWith('viewState.viewEnter', { title: null, navDirection: null });
|
||||
}));
|
||||
|
||||
it('should add the animation classname', inject(function($compile) {
|
||||
|
||||
Reference in New Issue
Block a user