diff options
| author | Misko Hevery | 2011-11-10 20:04:15 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:18 -0800 | 
| commit | 186a840cd34d3ffed7b351a1827e7736cd8d54c3 (patch) | |
| tree | 3f67580bd1526535439d19308abbe62e31666209 /test/AngularSpec.js | |
| parent | b09595a3c12ba761772084b94767b635c5bbfaf2 (diff) | |
| download | angular.js-186a840cd34d3ffed7b351a1827e7736cd8d54c3.tar.bz2 | |
feat(bootstrap): added angular.bootstrap method
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 11 | 
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); +    }); +  });  }); | 
