diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2020-11-20 21:52:57 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2020-11-27 19:10:20 +0300 |
commit | 523cf69acbda17e13fdbfba068d7231d2d9e8908 (patch) | |
tree | 859708040089a80c7b51df1ff03a7fc9c751c132 /lib | |
parent | 9da972dc44c21cf0e337f1c3fca44eb9df3e40d5 (diff) |
test: add lib/rebuild.js tests
Fixes: https://github.com/npm/statusboard/issues/166
PR-URL: https://github.com/npm/cli/pull/2244
Credit: @ruyadorno
Close: #2244
Reviewed-by: @darcyclarke
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rebuild.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js index 076cfc699..f373d8cf5 100644 --- a/lib/rebuild.js +++ b/lib/rebuild.js @@ -1,10 +1,13 @@ +'use strict' + +const { resolve } = require('path') const Arborist = require('@npmcli/arborist') +const npa = require('npm-package-arg') +const semver = require('semver') + const npm = require('./npm.js') const usageUtil = require('./utils/usage.js') -const { resolve } = require('path') const output = require('./utils/output.js') -const npa = require('npm-package-arg') -const semver = require('semver') const cmd = (args, cb) => rebuild(args).then(() => cb()).catch(cb) |