Files
ionic-framework/js/ext/angular/test/directive/ionicNavView.unit.js
Andy Joslin 2c39a21498 feat(ionic): prefix all directives with ion-
BREAKING CHANGE: All directives are now prefixed with `ion-`.

For any directive you use, add the ionic prefix.

For example, change this HTML:

```html
<tabs>
  <tab title="home" href="/tab/home">
    <content>Hello!</content>
  </tab>
</tabs>
```

To this HTML:

```
<ion-tabs>
  <ion-tab title="home" href="/tab/home">
    <ion-content>Hello!</ion-content>
  </ion-tab>
</ion-tabs>
```
2014-02-18 16:13:00 -05:00

22 lines
502 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('<ion-nav-view></ion-nav-view>');
compile(view)(scope);
scope.$apply();
expect(view.controller('ionNavView')).toBeTruthy();
});
/*
* TODO adapt the tests from uiRouter
*/
});