mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
19 lines
485 B
JavaScript
19 lines
485 B
JavaScript
/**
|
|
* 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('<side-menus></side-menus>')($rootScope);
|
|
}));
|
|
|
|
it('Should init', function() {
|
|
var scope = el.scope();
|
|
expect(scope.sideMenuController).not.toBe(undefined);
|
|
});
|
|
});
|