diff options
| author | Di Peng | 2011-07-11 17:31:29 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-07-22 15:34:55 -0700 |
| commit | 0782422d1f319593ffe3f0d7b2372ba995ad362c (patch) | |
| tree | 7da0e0cb89b8c3f41a260fa3a986daae807650b1 /test | |
| parent | 8fa066190af2b2267a5e8111a41beb6e8af5c340 (diff) | |
| download | angular.js-0782422d1f319593ffe3f0d7b2372ba995ad362c.tar.bz2 | |
feat(angular.version): add angular.version
- placeholders are replaced with actual angular versions when doing
rake compile
Diffstat (limited to 'test')
| -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 3389d9b1..98554199 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -625,4 +625,15 @@ describe('angular', function(){ }); }); + + describe('version', function() { + it('version should have full/major/minor/dot/codeName properties', function() { + expect(version).toBeDefined(); + expect(version.full).toBe('"NG_VERSION_FULL"'); + expect(version.major).toBe("NG_VERSION_MAJOR"); + expect(version.minor).toBe("NG_VERSION_MINOR"); + expect(version.dot).toBe("NG_VERSION_DOT"); + expect(version.codeName).toBe('"NG_VERSION_CODENAME"'); + }); + }) }); |
