mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 14:19:17 +08:00
Side menu fix for #24
This commit is contained in:
18
js/ext/angular/test/directive/ionicSideMenu.unit.js
Normal file
18
js/ext/angular/test/directive/ionicSideMenu.unit.js
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Test the side menu directive. For more test coverage of the side menu,
|
||||
* see the core Ionic sideMenu controller tests.
|
||||
*/
|
||||
describe('Ionic Angular Side Menu', function() {
|
||||
var el;
|
||||
|
||||
beforeEach(module('ionic.ui.sideMenu'));
|
||||
|
||||
beforeEach(inject(function($compile, $rootScope) {
|
||||
el = $compile('<div side-menu-ctrl></div>')($rootScope);
|
||||
}));
|
||||
|
||||
it('Should init', function() {
|
||||
var scope = el.scope();
|
||||
expect(scope.sideMenuCtrl).not.toBe(undefined);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user