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:
authorRebecca Turner <me@re-becca.org>2015-06-15 19:43:43 +0300
committerRebecca Turner <me@re-becca.org>2015-06-26 03:27:15 +0300
commita56a10868884223ad178ce7adb9e738e4750809a (patch)
tree85b0411bc2707225ceb5b55c69334ff7bea8bbf7 /test
parentc9fcf0d1b37c834857010d9cd671fd83dacddbc3 (diff)
test: Update cache-shasum-fork to expect npm@3 output
Diffstat (limited to 'test')
-rw-r--r--test/tap/cache-shasum-fork.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/tap/cache-shasum-fork.js b/test/tap/cache-shasum-fork.js
index f16404cb2..c87e8c10a 100644
--- a/test/tap/cache-shasum-fork.js
+++ b/test/tap/cache-shasum-fork.js
@@ -18,6 +18,9 @@ var pkg = path.resolve(__dirname, 'cache-shasum-fork')
var cache = path.join(pkg, 'cache')
var server
+var installed_output = path.join(__dirname,"cache-shasum-fork") +
+ "\n`-- underscore@1.5.1 \n\n"
+
test('setup', function (t) {
setup()
t.comment('test for https://github.com/npm/npm/issues/3265')
@@ -44,7 +47,7 @@ test('npm cache - install from fork', function (t) {
t.notOk(stderr, 'Should not get data on stderr: ' + stderr)
t.equal(code, 0, 'install finished successfully')
- t.equal(stdout, 'underscore@1.5.1 node_modules/underscore\n')
+ t.equal(stdout, installed_output)
var index = fs.readFileSync(
path.join(pkg, 'node_modules', 'underscore', 'index.js'),
'utf8'
@@ -72,7 +75,7 @@ test('npm cache - install from origin', function (t) {
t.ifErr(err, 'install finished without error')
t.equal(code, 0, 'install finished successfully')
t.notOk(stderr, 'Should not get data on stderr: ' + stderr)
- t.equal(stdout, 'underscore@1.5.1 node_modules/underscore\n')
+ t.equal(stdout, installed_output)
var index = fs.readFileSync(
path.join(pkg, 'node_modules', 'underscore', 'index.js'),
'utf8'