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
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-05-02 03:11:26 +0400
committerisaacs <i@izs.me>2014-05-02 03:11:26 +0400
commite21c9c2fac024709e357547af4281f99b3997dfc (patch)
treec9005c6e3ec7c12e9031b33c1467546a9c386e8e /test
parentcc6ec187b5250558926b28110d0b4eb52510832c (diff)
cache: Fix typo bug (plus test)
Diffstat (limited to 'test')
-rw-r--r--test/tap/install-save-prefix.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tap/install-save-prefix.js b/test/tap/install-save-prefix.js
index 0ce6e02fa..9cb6bd9cb 100644
--- a/test/tap/install-save-prefix.js
+++ b/test/tap/install-save-prefix.js
@@ -25,13 +25,13 @@ test('"npm install --save with default save-prefix should install local pkg vers
registry: common.registry }, function(err) {
t.ifError(err)
npm.config.set('save', true)
- npm.commands.install(['underscore@1.3.1'], function(err) {
+ npm.commands.install(['underscore@latest'], function(err) {
t.ifError(err)
var p = path.resolve(pkg, 'node_modules/underscore/package.json')
t.ok(JSON.parse(fs.readFileSync(p)))
var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
t.deepEqual(pkgJson.dependencies, {
- 'underscore': '^1.3.1'
+ 'underscore': '^1.5.1'
}, 'Underscore dependency should specify ^1.3.1')
npm.config.set('save', undefined)
s.close()