Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2015-06-01 07:12:28 +0300
committerForrest L Norvell <forrest@npmjs.com>2015-06-01 07:12:28 +0300
commitef6be38ea056418f251a3c6368a4f0b0583c2b26 (patch)
tree64accdc104e13219e4ad04b080652d9932368271 /node_modules/semver/test
parent4b5e557a23cdefd521ad154111e3d4dcc81f1cdb (diff)
semver@4.3.5
Improved testing, with coverage.
Diffstat (limited to 'node_modules/semver/test')
-rw-r--r--node_modules/semver/test/index.js3
-rw-r--r--node_modules/semver/test/ltr.js6
2 files changed, 5 insertions, 4 deletions
diff --git a/node_modules/semver/test/index.js b/node_modules/semver/test/index.js
index 926d560fe..c256c7947 100644
--- a/node_modules/semver/test/index.js
+++ b/node_modules/semver/test/index.js
@@ -148,7 +148,7 @@ test('\nrange tests', function(t) {
['>=*', '0.2.4'],
['', '1.0.0'],
['*', '1.2.3'],
- ['*', 'v1.2.3-foo', true],
+ ['*', 'v1.2.3', true],
['>=1.0.0', '1.0.0'],
['>=1.0.0', '1.0.1'],
['>=1.0.0', '1.1.0'],
@@ -301,6 +301,7 @@ test('\nnegative range tests', function(t) {
['^1.2.3', '2.0.0-alpha'],
['^1.2.3', '1.2.2'],
['^1.2', '1.1.9'],
+ ['*', 'v1.2.3-foo', true],
// invalid ranges never satisfied!
['blerg', '1.2.3'],
['git+https://user:password0123@github.com/foo', '123.0.0', true],
diff --git a/node_modules/semver/test/ltr.js b/node_modules/semver/test/ltr.js
index ecd1387dd..0f7167d65 100644
--- a/node_modules/semver/test/ltr.js
+++ b/node_modules/semver/test/ltr.js
@@ -70,7 +70,8 @@ test('\nltr tests', function(t) {
['^1', '1.0.0-0'],
['>=0.7.x', '0.7.0-asdf'],
['1', '1.0.0beta', true],
- ['>=0.7.x', '0.6.2']
+ ['>=0.7.x', '0.6.2'],
+ ['>1.2.3', '1.3.0-alpha']
].forEach(function(tuple) {
var range = tuple[0];
var version = tuple[1];
@@ -83,7 +84,7 @@ test('\nltr tests', function(t) {
test('\nnegative ltr tests', function(t) {
// [range, version, loose]
- // Version should NOT be greater than range
+ // Version should NOT be less than range
[
['~ 1.0', '1.1.0'],
['~0.6.1-1', '0.6.1-1'],
@@ -93,7 +94,6 @@ test('\nnegative ltr tests', function(t) {
['>=*', '0.2.4'],
['', '1.0.0', true],
['*', '1.2.3'],
- ['*', 'v1.2.3-foo'],
['>=1.0.0', '1.0.0'],
['>=1.0.0', '1.0.1'],
['>=1.0.0', '1.1.0'],