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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/lib/utils')
-rw-r--r--deps/npm/test/lib/utils/completion/installed-deep.js4
-rw-r--r--deps/npm/test/lib/utils/error-message.js6
-rw-r--r--deps/npm/test/lib/utils/tar.js4
3 files changed, 11 insertions, 3 deletions
diff --git a/deps/npm/test/lib/utils/completion/installed-deep.js b/deps/npm/test/lib/utils/completion/installed-deep.js
index 21e77a568bd..aa0d85ec10a 100644
--- a/deps/npm/test/lib/utils/completion/installed-deep.js
+++ b/deps/npm/test/lib/utils/completion/installed-deep.js
@@ -219,6 +219,8 @@ t.test('limit depth', async t => {
[
['bar', '-g'],
['foo', '-g'],
+ // XXX https://github.com/npm/statusboard/issues/380
+ ['a-bar', '-g'],
'a', 'b',
'c', 'ch',
'd', 'e',
@@ -248,6 +250,8 @@ t.test('limit depth as global', async t => {
[
'bar',
'foo',
+ // https://github.com/npm/statusboard/issues/380
+ 'a-bar',
],
'should reorder so that packages above that level depth goes last'
)
diff --git a/deps/npm/test/lib/utils/error-message.js b/deps/npm/test/lib/utils/error-message.js
index 908d70fc392..07328d58875 100644
--- a/deps/npm/test/lib/utils/error-message.js
+++ b/deps/npm/test/lib/utils/error-message.js
@@ -292,7 +292,7 @@ t.test('json parse', t => {
process.argv = ['arg', 'v']
t.matchSnapshot(errorMessage(Object.assign(new Error('conflicted'), {
code: 'EJSONPARSE',
- file: resolve(dir, 'package.json'),
+ path: resolve(dir, 'package.json'),
}), npm))
t.end()
})
@@ -314,7 +314,7 @@ t.test('json parse', t => {
process.argv = ['arg', 'v']
t.matchSnapshot(errorMessage(Object.assign(new Error('not json'), {
code: 'EJSONPARSE',
- file: resolve(dir, 'package.json'),
+ path: resolve(dir, 'package.json'),
}), npm))
t.end()
})
@@ -330,7 +330,7 @@ t.test('json parse', t => {
process.argv = ['arg', 'v']
t.matchSnapshot(errorMessage(Object.assign(new Error('not json'), {
code: 'EJSONPARSE',
- file: `${dir}/blerg.json`,
+ path: `${dir}/blerg.json`,
}), npm))
t.end()
})
diff --git a/deps/npm/test/lib/utils/tar.js b/deps/npm/test/lib/utils/tar.js
index 2662d47ace4..19d94916945 100644
--- a/deps/npm/test/lib/utils/tar.js
+++ b/deps/npm/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()