Commit 0323e7e
committed
test: add unit test for projectName in JSON output
- Added new fixture container-deb-scan-result.json matching deb/container scenario
- Added new fixture monitor-dependencies-response-with-project-name.json with
real API response structure
- Added test case to validate projectName comes from registry response, not id1 parent 9dde760 commit 0323e7e
3 files changed
Lines changed: 50 additions & 22 deletions
File tree
- test
- fixtures/container-projects
- jest/unit
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
149 | 138 | | |
150 | 139 | | |
151 | 140 | | |
152 | | - | |
153 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
154 | 145 | | |
155 | 146 | | |
156 | 147 | | |
| |||
179 | 170 | | |
180 | 171 | | |
181 | 172 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 173 | + | |
185 | 174 | | |
186 | 175 | | |
187 | 176 | | |
0 commit comments