From 36fbbc6c5cc21e47c88eb31b70535e86b25101f9 Mon Sep 17 00:00:00 2001 From: Florian Greinacher Date: Tue, 16 Jan 2024 11:54:45 +0100 Subject: [PATCH] refactor: rename variable --- lib/modules/manager/gitlabci-include/extract.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/manager/gitlabci-include/extract.spec.ts b/lib/modules/manager/gitlabci-include/extract.spec.ts index 801c9ec3c4d8e4..8de968a9d2cb95 100644 --- a/lib/modules/manager/gitlabci-include/extract.spec.ts +++ b/lib/modules/manager/gitlabci-include/extract.spec.ts @@ -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/a-component@1.0 inputs: stage: build @@ -75,7 +75,7 @@ describe('modules/manager/gitlabci-include/extract', () => { malformed: true - component: gitlab.example.com/an-org/a-component@1.0 - component: other-gitlab.example.com/an-org/a-project/a-component@1.0`; - const res = extractPackageFile(includeWithoutProjectRef); + const res = extractPackageFile(content); expect(res?.deps).toMatchSnapshot(); expect(res?.deps).toHaveLength(5); });