diff options
author | isaacs <i@izs.me> | 2020-08-04 08:56:34 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-08-04 11:03:34 +0300 |
commit | 108a4fcb5da23c34690b4767a4c5f7f93ab99c0d (patch) | |
tree | 15254742f9e81012fd8d50d6621d9178d2f6977d /test/lib/pack.js | |
parent | 0b63d5078a5858b83dba943720c6d6dfe6eb808f (diff) |
refactor and lint commands, make consistent
Still pending test coverage for most of these, but wanted to give them a
clean sweep to get the "load-all-commands" tests passing.
The following changes are in here:
- All commands now have a `completion()` method and a usage string that
uses the same `usage` util consistently.
- The `silent` argument to many commands has been removed.
- All commands use the `cmd = ${cmd}(args).then(() => cb()).catch(cb)`
pattern consistently.
Full test coverage for all commands is still lacking, and will have to
be done prior to the GA v7 release.
Diffstat (limited to 'test/lib/pack.js')
-rw-r--r-- | test/lib/pack.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/pack.js b/test/lib/pack.js index 33570ccf3..e479dd14c 100644 --- a/test/lib/pack.js +++ b/test/lib/pack.js @@ -49,7 +49,7 @@ test('should pack given directory', (t) => { } }) - pack([testDir], false, () => { + pack([testDir], () => { t.end() }) }) @@ -76,7 +76,7 @@ test('should log pack contents', (t) => { } }) - pack([], true, () => { + pack([], () => { t.end() }) }) |