Skip to content

Commit

Permalink
refactor: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fgreinacher committed Jan 16, 2024
1 parent f784b6c commit 36fbbc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/manager/gitlabci-include/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('modules/manager/gitlabci-include/extract', () => {
endpoint: 'https://gitlab.example.com',
});

const includeWithoutProjectRef = `include:
const content = `include:
- component: gitlab.example.com/an-org/a-project/[email protected]
inputs:
stage: build
Expand All @@ -75,7 +75,7 @@ describe('modules/manager/gitlabci-include/extract', () => {
malformed: true
- component: gitlab.example.com/an-org/[email protected]
- component: other-gitlab.example.com/an-org/a-project/[email protected]`;
const res = extractPackageFile(includeWithoutProjectRef);
const res = extractPackageFile(content);
expect(res?.deps).toMatchSnapshot();
expect(res?.deps).toHaveLength(5);
});
Expand Down

0 comments on commit 36fbbc6

Please sign in to comment.