diff options
author | isaacs <i@izs.me> | 2013-08-03 00:31:17 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-08-03 00:31:17 +0400 |
commit | f369647b00d5f9599046396c1721ca49bf1689ff (patch) | |
tree | f132b65028d50019661fb531b8f4bfac6e8a2884 /node_modules/semver/test/index.js | |
parent | d1f4897a3b2be2e598e363fe5403355c69472c53 (diff) |
Bump all deps
Diffstat (limited to 'node_modules/semver/test/index.js')
-rw-r--r-- | node_modules/semver/test/index.js | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/node_modules/semver/test/index.js b/node_modules/semver/test/index.js index 51ad909ae..5b488b2f8 100644 --- a/node_modules/semver/test/index.js +++ b/node_modules/semver/test/index.js @@ -207,7 +207,15 @@ test('\nrange tests', function(t) { ['>=1.2.1 >=1.2.3', '1.2.3'], ['<=1.2.3', '1.2.3-beta'], ['>1.2', '1.3.0-beta'], - ['>=1.2', '1.2.8'] + ['>=1.2', '1.2.8'], + ['^1.2.3', '1.8.1'], + ['^1.2.3', '1.2.3-beta'], + ['^0.1.2', '0.1.2'], + ['^0.1', '0.1.2'], + ['^1.2', '1.4.2'], + ['^1.2 ^1', '1.4.2'], + ['^1.2', '1.2.0-pre'], + ['^1.2.3', '1.2.3-pre'] ].forEach(function(v) { var range = v[0]; var ver = v[1]; @@ -268,9 +276,13 @@ test('\nnegative range tests', function(t) { ['<1.2.3', '1.2.3-beta'], ['=1.2.3', '1.2.3-beta'], ['>1.2', '1.2.8'], + ['^1.2.3', '2.0.0-alpha'], + ['^1.2.3', '1.2.2'], + ['^1.2', '1.1.9'], // invalid ranges never satisfied! ['blerg', '1.2.3'], - ['git+https://user:password0123@github.com/foo', '123.0.0', true] + ['git+https://user:password0123@github.com/foo', '123.0.0', true], + ['^1.2.3', '2.0.0-pre'] ].forEach(function(v) { var range = v[0]; var ver = v[1]; @@ -374,6 +386,16 @@ test('\nvalid range test', function(t) { ['~> 1', '>=1.0.0-0 <2.0.0-0'], ['~1.0', '>=1.0.0-0 <1.1.0-0'], ['~ 1.0', '>=1.0.0-0 <1.1.0-0'], + ['^0', '>=0.0.0-0 <1.0.0-0'], + ['^ 1', '>=1.0.0-0 <2.0.0-0'], + ['^0.1', '>=0.1.0-0 <0.2.0-0'], + ['^1.0', '>=1.0.0-0 <2.0.0-0'], + ['^1.2', '>=1.2.0-0 <2.0.0-0'], + ['^0.0.1', '=0.0.1'], + ['^0.0.1-beta', '=0.0.1-beta'], + ['^0.1.2', '>=0.1.2-0 <0.2.0-0'], + ['^1.2.3', '>=1.2.3-0 <2.0.0-0'], + ['^1.2.3-beta.4', '>=1.2.3-beta.4 <2.0.0-0'], ['<1', '<1.0.0-0'], ['< 1', '<1.0.0-0'], ['>=1', '>=1.0.0-0'], @@ -384,7 +406,8 @@ test('\nvalid range test', function(t) { ['>01.02.03', '>1.2.3', true], ['>01.02.03', null], ['~1.2.3beta', '>=1.2.3-beta <1.3.0-0', true], - ['~1.2.3beta', null] + ['~1.2.3beta', null], + ['^ 1.2 ^ 1', '>=1.2.0-0 <2.0.0-0 >=1.0.0-0 <2.0.0-0'] ].forEach(function(v) { var pre = v[0]; var wanted = v[1]; |