Side menu fix for #24

This commit is contained in:
Max Lynch
2013-10-15 11:58:34 -05:00
parent 9ec9cedf70
commit 305f22d673
5 changed files with 44 additions and 18 deletions

View 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);
});
});