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:
Diffstat (limited to 'test')
-rw-r--r--test/lib/utils/explain-dep.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lib/utils/explain-dep.js b/test/lib/utils/explain-dep.js
index 000f5b816..ed006c01d 100644
--- a/test/lib/utils/explain-dep.js
+++ b/test/lib/utils/explain-dep.js
@@ -129,6 +129,23 @@ const cases = {
dependents: [],
extraneous: true,
},
+
+ overridden: {
+ name: 'overridden-root',
+ version: '1.0.0',
+ location: 'node_modules/overridden-root',
+ overridden: true,
+ dependents: [{
+ type: 'prod',
+ name: 'overridden-dep',
+ spec: '1.0.0',
+ rawSpec: '^2.0.0',
+ overridden: true,
+ from: {
+ location: '/path/to/project',
+ },
+ }],
+ },
}
cases.manyDeps = {