mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
23 lines
611 B
JavaScript
23 lines
611 B
JavaScript
describe('Ionic SideMenuDelegate Service', function() {
|
|
var del, rootScope, compile, timeout, document;
|
|
|
|
beforeEach(module('ionic'));
|
|
|
|
beforeEach(inject(function($ionicSideMenuDelegate, $rootScope, $timeout, $compile, $document) {
|
|
del = $ionicSideMenuDelegate;
|
|
document = $document;
|
|
rootScope = $rootScope;
|
|
timeout = $timeout;
|
|
compile = $compile;
|
|
}));
|
|
|
|
it('Should get from scope', function() {
|
|
var scope = rootScope.$new();
|
|
var el = compile('<side-menus></side-menus>')(scope);
|
|
var sc = del.getSideMenuController(scope);
|
|
|
|
expect(sc).not.toBe(undefined);
|
|
});
|
|
|
|
});
|