diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/tree-style.js (renamed from test/need-npm5-update/tree-style.js) | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/test/need-npm5-update/tree-style.js b/test/tap/tree-style.js index b2bf0ce70..12fdb0bbd 100644 --- a/test/need-npm5-update/tree-style.js +++ b/test/tap/tree-style.js @@ -1,4 +1,5 @@ 'use strict' +var Bluebird = require('bluebird') var test = require('tap').test var path = require('path') var mkdirp = require('mkdirp') @@ -18,7 +19,7 @@ var json = { 'name': 'test-tree-style', 'version': '1.0.0', 'dependencies': { - 'modA': modA + 'modA': modA + '-1.0.0.tgz' } } @@ -26,7 +27,7 @@ var modAJson = { 'name': 'modA', 'version': '1.0.0', 'dependencies': { - 'modB': modB + 'modB': modB + '-1.0.0.tgz' } } @@ -34,7 +35,7 @@ var modBJson = { 'name': 'modB', 'version': '1.0.0', 'dependencies': { - 'modC': modC + 'modC': modC + '-1.0.0.tgz' } } @@ -71,7 +72,17 @@ function cleanup () { test('setup', function (t) { setup() - t.end() + return Bluebird.try(() => { + return common.npm(['pack', 'file:modC'], {cwd: base}) + }).spread((code) => { + t.is(code, 0, 'pack modC') + return common.npm(['pack', 'file:modB'], {cwd: base}) + }).spread((code) => { + t.is(code, 0, 'pack modB') + return common.npm(['pack', 'file:modA'], {cwd: base}) + }).spread((code) => { + t.is(code, 0, 'pack modA') + }) }) function exists (t, filepath, msg) { |