Files
ionic-framework/js/ext/angular/test/directive/ionicNavView.unit.js
Andy Joslin 2d1b71c8e2 feat(content): remember scroll of previous page
`content` directive stores scroll in view page history.

The history is passed down through $viewContentLoaded event, which is
broadcasted by navView directive when it loads a page.
2014-02-04 08:48:03 -05:00

22 lines
493 B
JavaScript

describe('Ionic nav-view', function() {
beforeEach(module('ionic.ui.viewState'));
var compile, scope;
beforeEach(inject(function($compile, $rootScope) {
compile = $compile;
scope = $rootScope.$new();
}));
it('should publish a controller', function() {
var view = angular.element('<nav-view></nav-view>');
compile(view)(scope);
scope.$apply();
expect(view.controller('navView')).toBeTruthy();
});
/*
* TODO adapt the tests from uiRouter
*/
});