mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
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:
7
test/ngMock/angular-mocksSpec.js
vendored
7
test/ngMock/angular-mocksSpec.js
vendored
@@ -950,6 +950,13 @@ describe('ngMock', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe('$rootElement', function() {
|
||||
it('should create mock application root', inject(function($rootElement) {
|
||||
expect($rootElement.text()).toEqual('');
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user