From 85632cb44c95617d73c369f3a03fb476a4d5c8a2 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 18 May 2012 14:53:11 -0700 Subject: feat($rootElement): added application root element Publish the application root element as $rootElement so that it can be injected to other services. --- test/ngMock/angular-mocksSpec.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/ngMock') diff --git a/test/ngMock/angular-mocksSpec.js b/test/ngMock/angular-mocksSpec.js index 62190072..f4f6a346 100644 --- a/test/ngMock/angular-mocksSpec.js +++ b/test/ngMock/angular-mocksSpec.js @@ -950,6 +950,13 @@ describe('ngMock', function() { }); }); }); + + + describe('$rootElement', function() { + it('should create mock application root', inject(function($rootElement) { + expect($rootElement.text()).toEqual(''); + })); + }); }); -- cgit v1.2.3