diff options
Diffstat (limited to 'deps/npm/test/tap/uninstall-in-reverse.js')
-rw-r--r-- | deps/npm/test/tap/uninstall-in-reverse.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/deps/npm/test/tap/uninstall-in-reverse.js b/deps/npm/test/tap/uninstall-in-reverse.js index e5c7a80c7e..5a13e904f3 100644 --- a/deps/npm/test/tap/uninstall-in-reverse.js +++ b/deps/npm/test/tap/uninstall-in-reverse.js @@ -8,10 +8,10 @@ The remove actions need to happen in the opposite of their normally defined order. That is, they need to go shallow -> deep. */ -var removed = [] +var unbuilt = [] var npm = requireInject.installGlobally('../../lib/npm.js', { - '../../lib/install/action/remove.js': function (staging, pkg, log, next) { - removed.push(pkg.package.name) + '../../lib/install/action/unbuild.js': function (staging, pkg, log, next) { + unbuilt.push(pkg.package.name) next() } }) @@ -28,11 +28,11 @@ test('abc', function (t) { var inst = new Installer(__dirname, false, []) inst.progress = {executeActions: log} inst.todo = [ - ['remove', {package: {name: 'first'}}], - ['remove', {package: {name: 'second'}}] + ['unbuild', {package: {name: 'first'}}], + ['unbuild', {package: {name: 'second'}}] ] inst.executeActions(function () { - t.isDeeply(removed, ['second', 'first']) + t.isDeeply(unbuilt, ['second', 'first']) t.end() }) }) |