feat($rootElement): added application root element

Publish the application root element as $rootElement
so that it can be injected to other services.
This commit is contained in:
Misko Hevery
2012-05-18 14:53:11 -07:00
parent 0a6e464a93
commit 85632cb44c
5 changed files with 47 additions and 3 deletions

View File

@@ -950,6 +950,13 @@ describe('ngMock', function() {
});
});
});
describe('$rootElement', function() {
it('should create mock application root', inject(function($rootElement) {
expect($rootElement.text()).toEqual('');
}));
});
});