aboutsummaryrefslogtreecommitdiffstats
path: root/test/jqLiteSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/jqLiteSpec.js')
-rw-r--r--test/jqLiteSpec.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js
index 5c54e786..5936395e 100644
--- a/test/jqLiteSpec.js
+++ b/test/jqLiteSpec.js
@@ -138,6 +138,19 @@ describe('jqLite', function() {
});
+ describe('injector', function() {
+ it('should retrieve injector attached to the current element or its parent', function() {
+ var template = jqLite('<div><span></span></div>'),
+ span = template.children().eq(0),
+ injector = angular.bootstrap(template);
+
+
+ expect(span.injector()).toBe(injector);
+ dealoc(template);
+ });
+ });
+
+
describe('data', function() {
it('should set and get and remove data', function() {
var selected = jqLite([a, b, c]);