Files
angular.js/test/ng/rootElementSpec.js
Misko Hevery 85632cb44c feat($rootElement): added application root element
Publish the application root element as $rootElement
so that it can be injected to other services.
2012-06-02 14:50:58 -07:00

13 lines
312 B
JavaScript

'use strict';
describe('$rootElement', function() {
it('should publish the bootstrap element into $rootElement', function() {
var element = jqLite('<div></div>');
var injector = angular.bootstrap(element);
expect(injector.get('$rootElement')[0]).toBe(element[0]);
dealoc(element);
});
});