Skip to content

Commit 5789c20

Browse files
committed
update test
1 parent 98b7e66 commit 5789c20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

componentDetection.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ describe('normalizeDependencyGraphPaths with real output.json', () => {
198198
const dependencyGraphs = output.dependencyGraphs;
199199
// Use the same filePath as the action default (".")
200200
const normalized = ComponentDetection.normalizeDependencyGraphPaths(dependencyGraphs, 'test');
201-
// Should contain /package.json and /package-lock.json as keys
202-
expect(Object.keys(normalized)).toContain('/package.json');
203-
expect(Object.keys(normalized)).toContain('/package-lock.json');
201+
// Root level manifests should not have leading slashes
202+
expect(Object.keys(normalized)).toContain('package.json');
203+
expect(Object.keys(normalized)).toContain('package-lock.json');
204204
// All keys should now be relative to the repo root (cwd) and start with '/'
205205
for (const key of Object.keys(normalized)) {
206206
expect(key.startsWith('/')).toBe(true);

0 commit comments

Comments
 (0)