describe('jqLite', function(){ var scope; beforeEach(function(){ scope = angular.scope(); }); describe('scope', function() { it('should retrieve scope attached to the current element', function() { var element = jqLite('foo'); element.data('$scope', scope); expect(element.scope()).toBe(scope); dealoc(element); }); it('should walk up the dom to find scope', function() { var element = jqLite('
deep deep
deep deep