aboutsummaryrefslogtreecommitdiffstats
path: root/test/jqLiteSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-01-15 23:26:06 -0800
committerIgor Minar2012-01-16 02:17:27 -0800
commitb587091b6e6a30a2c53d577956866a1e3d1c77ea (patch)
tree8d12a67d59503b8b8ad67a907f3cbe5351daab56 /test/jqLiteSpec.js
parentc49b8a2db5d916a9213547125af996d6c853230c (diff)
downloadangular.js-b587091b6e6a30a2c53d577956866a1e3d1c77ea.tar.bz2
feat(jqLite): added injector() helper method
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]);