aboutsummaryrefslogtreecommitdiffstats
path: root/test/AngularSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/AngularSpec.js')
-rw-r--r--test/AngularSpec.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js
index 6229120d..e14f2e27 100644
--- a/test/AngularSpec.js
+++ b/test/AngularSpec.js
@@ -529,4 +529,15 @@ describe('angular', function() {
expect(version.codeName).toBe('"NG_VERSION_CODENAME"');
});
});
+
+ describe('bootstrap', function() {
+ it('should bootstrap app', function(){
+ var element = jqLite('<div>{{1+2}}</div>');
+ var injector;
+ angular.bootstrap(element, [function($injector){ injector = $injector; }]);
+ expect(injector).toBeDefined();
+ expect(element.data('$injector')).toBe(injector);
+ dealoc(element);
+ });
+ });
});