diff options
author | Rebecca Turner <me@re-becca.org> | 2017-05-10 04:15:18 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 04:55:09 +0300 |
commit | 1e5fc2c825aca4cf8051bd46812fbf688d2c153b (patch) | |
tree | d0125d64ba3783a823812b71a84101ef476243fb /test | |
parent | adc8147d9a6cf0b3849890e38068f16b2d6e36fc (diff) |
test: tree-style update to not use links
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) { |