Skip to content

Commit 330e898

Browse files
committed
test: Enhance test case for package.c
1 parent f1198b8 commit 330e898

2 files changed

Lines changed: 73 additions & 12 deletions

File tree

internal/shrinkwrap-extractor/test/expected/package.c/npm-shrinkwrap.json

Lines changed: 47 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/shrinkwrap-extractor/test/fixture/project.c/package-lock.fixture.json

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"version": "1.0.0",
3434
"license": "Apache-2.0",
3535
"dependencies": {
36-
"@sapui5/some-thirdparty": "^2.0.0",
36+
"@sapui5/thirdparty-a": "^2.0.0",
37+
"@sapui5/thirdparty-b": "^1.0.0",
3738
"@ui5/module-a": "^1.0.0",
3839
"@ui5/module-b": "^1.0.0"
3940
},
@@ -45,7 +46,8 @@
4546
"license": "Apache-2.0",
4647
"dependencies": {
4748
"@ui5/module-b": "^1.0.0",
48-
"@sapui5/some-thirdparty": "^1.0.0"
49+
"@sapui5/thirdparty-a": "^1.0.0",
50+
"@sapui5/thirdparty-b": "^1.0.0"
4951
},
5052
"devDependencies": {}
5153
},
@@ -54,14 +56,33 @@
5456
"version": "1.0.0",
5557
"license": "Apache-2.0",
5658
"dependencies": {
57-
"@sapui5/some-thirdparty": "^1.0.0"
59+
"@sapui5/thirdparty-a": "^1.0.0",
60+
"@sapui5/thirdparty-b": "^1.0.0"
5861
},
5962
"devDependencies": {}
6063
},
61-
"node_modules/@sapui5/some-thirdparty": {
64+
"node_modules/@sapui5/thirdparty-a": {
65+
"version": "1.0.0",
66+
"dependencies": {
67+
"@sapui5/thirdparty-x": "^1.0.0"
68+
}
69+
},
70+
"node_modules/@sapui5/thirdparty-b": {
71+
"version": "1.0.0",
72+
"dependencies": {
73+
"@sapui5/thirdparty-x": "^1.0.0"
74+
}
75+
},
76+
"node_modules/@sapui5/thirdparty-x": {
6277
"version": "1.0.0"
6378
},
64-
"packages/target/node_modules/@sapui5/some-thirdparty": {
79+
"packages/target/node_modules/@sapui5/thirdparty-a": {
80+
"version": "2.0.0",
81+
"dependencies": {
82+
"@sapui5/thirdparty-x": "^2.0.0"
83+
}
84+
},
85+
"packages/target/node_modules/@sapui5/thirdparty-x": {
6586
"version": "2.0.0"
6687
}
6788
}

0 commit comments

Comments
 (0)