Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-07-22 17:49:40 +0300
committerGar <gar+gh@danger.computer>2021-08-11 19:36:43 +0300
commita1bdbea974ebfc6694b4c8ad5da86215c2924dde (patch)
tree3b1ab9b288ee9ed84afdcec2cb8ca7ee1f55ca46 /test
parentd1812f1a627d6a4d4cb6d07d7735d2d2cc2cf264 (diff)
deps: remove byte-size
In its latest release, byte-size dropped support for node versions lower than 14. The cli currently supports node 10 and up. The actual functionality we needed and was using was extremely limited in scope, and didn't warrant an external module. It's just pretty printing a file size, and the files we are dealing with are limited in size so we don't need to support so many suffixes. PR-URL: https://github.com/npm/cli/pull/3569 Credit: @wraithgar Close: #3569 Reviewed-by: @isaacs
Diffstat (limited to 'test')
-rw-r--r--test/lib/utils/tar.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/utils/tar.js b/test/lib/utils/tar.js
index 2662d47ac..19d949169 100644
--- a/test/lib/utils/tar.js
+++ b/test/lib/utils/tar.js
@@ -57,6 +57,8 @@ t.test('should log tarball contents with unicode', async (t) => {
logTar({
files: [],
bundled: [],
+ size: 0,
+ unpackedSize: 0,
integrity: '',
}, { unicode: true })
t.end()
@@ -75,6 +77,8 @@ t.test('should default to npmlog', async (t) => {
logTar({
files: [],
bundled: [],
+ size: 0,
+ unpackedSize: 0,
integrity: '',
})
t.end()