Skip to content

Commit f14a403

Browse files
committed
fix: the snapshots were not expecting any names with wh in them
1 parent a9be9c2 commit f14a403

File tree

3 files changed

+153
-39
lines changed

3 files changed

+153
-39
lines changed

test/system/application-scans/__snapshots__/node.spec.ts.snap

Lines changed: 64 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55967,11 +55967,6 @@ Array [
5596755967
"nodeId": "[email protected]",
5596855968
"pkgId": "[email protected]",
5596955969
},
55970-
Object {
55971-
"deps": Array [],
55972-
"nodeId": "[email protected]",
55973-
"pkgId": "[email protected]",
55974-
},
5597555970
Object {
5597655971
"deps": Array [],
5597755972
"nodeId": "[email protected]",
@@ -56605,6 +56600,20 @@ Array [
5660556600
"nodeId": "[email protected]",
5660656601
"pkgId": "[email protected]",
5660756602
},
56603+
Object {
56604+
"deps": Array [],
56605+
"nodeId": "[email protected]",
56606+
"pkgId": "[email protected]",
56607+
},
56608+
Object {
56609+
"deps": Array [
56610+
Object {
56611+
"nodeId": "[email protected]",
56612+
},
56613+
],
56614+
"nodeId": "[email protected]",
56615+
"pkgId": "[email protected]",
56616+
},
5660856617
Object {
5660956618
"deps": Array [
5661056619
Object {
@@ -56637,6 +56646,9 @@ Array [
5663756646
Object {
5663856647
"nodeId": "[email protected]",
5663956648
},
56649+
Object {
56650+
"nodeId": "[email protected]",
56651+
},
5664056652
],
5664156653
"nodeId": "[email protected]",
5664256654
"pkgId": "[email protected]",
@@ -56679,6 +56691,9 @@ Array [
5667956691
Object {
5668056692
"nodeId": "[email protected]",
5668156693
},
56694+
Object {
56695+
"nodeId": "[email protected]",
56696+
},
5668256697
],
5668356698
"nodeId": "[email protected]",
5668456699
"pkgId": "[email protected]",
@@ -57106,6 +57121,9 @@ Array [
5710657121
Object {
5710757122
"nodeId": "[email protected]",
5710857123
},
57124+
Object {
57125+
"nodeId": "[email protected]",
57126+
},
5710957127
],
5711057128
"nodeId": "[email protected]",
5711157129
"pkgId": "[email protected]",
@@ -57584,6 +57602,9 @@ Array [
5758457602
Object {
5758557603
"nodeId": "[email protected]",
5758657604
},
57605+
Object {
57606+
"nodeId": "[email protected]",
57607+
},
5758757608
],
5758857609
"nodeId": "[email protected]",
5758957610
"pkgId": "[email protected]",
@@ -58137,6 +58158,9 @@ Array [
5813758158
Object {
5813858159
"nodeId": "[email protected]",
5813958160
},
58161+
Object {
58162+
"nodeId": "[email protected]",
58163+
},
5814058164
],
5814158165
"nodeId": "[email protected]",
5814258166
"pkgId": "[email protected]",
@@ -58246,6 +58270,11 @@ Array [
5824658270
"nodeId": "[email protected]",
5824758271
"pkgId": "[email protected]",
5824858272
},
58273+
Object {
58274+
"deps": Array [],
58275+
"nodeId": "[email protected]",
58276+
"pkgId": "[email protected]",
58277+
},
5824958278
Object {
5825058279
"deps": Array [],
5825158280
"nodeId": "[email protected]",
@@ -58289,6 +58318,9 @@ Array [
5828958318
Object {
5829058319
"nodeId": "[email protected]",
5829158320
},
58321+
Object {
58322+
"nodeId": "[email protected]",
58323+
},
5829258324
Object {
5829358325
"nodeId": "[email protected]",
5829458326
},
@@ -58316,6 +58348,9 @@ Array [
5831658348
Object {
5831758349
"nodeId": "[email protected]",
5831858350
},
58351+
Object {
58352+
"nodeId": "[email protected]",
58353+
},
5831958354
Object {
5832058355
"nodeId": "[email protected]",
5832158356
},
@@ -58913,9 +58948,6 @@ Array [
5891358948
Object {
5891458949
"nodeId": "[email protected]",
5891558950
},
58916-
Object {
58917-
"nodeId": "[email protected]",
58918-
},
5891958951
Object {
5892058952
"nodeId": "[email protected]",
5892158953
},
@@ -59153,6 +59185,9 @@ Array [
5915359185
Object {
5915459186
"nodeId": "[email protected]",
5915559187
},
59188+
Object {
59189+
"nodeId": "[email protected]",
59190+
},
5915659191
Object {
5915759192
"nodeId": "[email protected]",
5915859193
},
@@ -60080,13 +60115,6 @@ Array [
6008060115
"version": "3.0.0",
6008160116
},
6008260117
},
60083-
Object {
60084-
60085-
"info": Object {
60086-
"name": "isexe",
60087-
"version": "2.0.0",
60088-
},
60089-
},
6009060118
Object {
6009160119
6009260120
"info": Object {
@@ -60542,6 +60570,20 @@ Array [
6054260570
"version": "4.4.13",
6054360571
},
6054460572
},
60573+
Object {
60574+
60575+
"info": Object {
60576+
"name": "isexe",
60577+
"version": "2.0.0",
60578+
},
60579+
},
60580+
Object {
60581+
60582+
"info": Object {
60583+
"name": "which",
60584+
"version": "1.3.1",
60585+
},
60586+
},
6054560587
Object {
6054660588
6054760589
"info": Object {
@@ -61550,6 +61592,13 @@ Array [
6155061592
"version": "1.0.1",
6155161593
},
6155261594
},
61595+
Object {
61596+
61597+
"info": Object {
61598+
"name": "which-module",
61599+
"version": "2.0.0",
61600+
},
61601+
},
6155361602
Object {
6155461603
6155561604
"info": Object {

test/system/application-scans/node.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ describe("node application scans", () => {
234234
const result = await extractContent([getNodeAppFileContentAction], {
235235
path: imageNameAndTag,
236236
});
237-
expect(Object.keys(result.extractedLayers).length).toEqual(608);
237+
expect(Object.keys(result.extractedLayers).length).toEqual(610);
238238
Object.keys(result.extractedLayers).forEach((fileName) => {
239239
expect(
240240
fileName.endsWith("/package.json") ||

0 commit comments

Comments
 (0)