diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-05-06 10:21:56 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 04:41:42 +0300 |
commit | 74d146e5cd713317e5eb2788fca524bb9e78ca26 (patch) | |
tree | 9c1c7613a1ae65e7816d1bca27040c0ca087822d /test | |
parent | 10727c40dd1dc838d110fbc14987857afcb7181a (diff) |
fix(tests): shrinkwrap always includes the full tree
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/shrinkwrap-default-dev.js | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/test/tap/shrinkwrap-default-dev.js b/test/tap/shrinkwrap-default-dev.js index f1ebc9c16..67266644c 100644 --- a/test/tap/shrinkwrap-default-dev.js +++ b/test/tap/shrinkwrap-default-dev.js @@ -21,7 +21,7 @@ var conf = { npm_config_tmp: tmpdir, npm_config_prefix: globaldir, npm_config_registry: common.registry, - npm_config_loglevel: 'warn' + npm_config_loglevel: 'error' }) } @@ -61,11 +61,6 @@ var shrinkwrapWithDev = { } } } -var shrinkwrapWithoutDev = { - name: 'shrinkwrap-default-dev', - version: '1.0.0', - dependencies: {} -} function setup () { cleanup() @@ -93,34 +88,7 @@ test('shrinkwrap-default-dev', function (t) { }) }) -test('shrinkwrap-only-prod', function (t) { - fs.unlinkSync(shrinkwrapPath) - common.npm(['shrinkwrap', '--only=prod'], conf, function (err, code, stdout, stderr) { - if (err) throw err - t.is(code, 0, 'command ran ok') - t.comment(stdout.trim()) - t.comment(stderr.trim()) - var swrap = JSON.parse(fs.readFileSync(shrinkwrapPath)) - t.isDeeply(swrap, shrinkwrapWithoutDev, 'Shrinkwrap did not include dev deps with --only=prod') - t.done() - }) -}) - -test('shrinkwrap-production', function (t) { - fs.unlinkSync(shrinkwrapPath) - common.npm(['shrinkwrap', '--production'], conf, function (err, code, stdout, stderr) { - if (err) throw err - t.is(code, 0, 'command ran ok') - t.comment(stdout.trim()) - t.comment(stderr.trim()) - var swrap = JSON.parse(fs.readFileSync(shrinkwrapPath)) - t.isDeeply(swrap, shrinkwrapWithoutDev, 'Shrinkwrap did not include dev deps with --production') - t.done() - }) -}) - test('cleanup', function (t) { cleanup() t.done() }) - |