Skip to content

Commit

Permalink
fix(manager/regex/tests): actually test 'combination' strategy (#27756)
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Mar 6, 2024
1 parent 6ae1c88 commit 8b44771
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/modules/manager/custom/regex/index.spec.ts
Expand Up @@ -351,7 +351,8 @@ describe('modules/manager/custom/regex/index', () => {
});

it('extracts with combination strategy: sets replaceString when current version group present', async () => {
const config = {
const config: CustomExtractConfig = {
matchStringsStrategy: 'combination',
matchStrings: [
'image:\\s+(?<depName>[a-z-]+)(?::(?<currentValue>[a-z0-9.-]+))?(?:@(?<currentDigest>sha256:[a-f0-9]+))?',
],
Expand All @@ -377,7 +378,8 @@ describe('modules/manager/custom/regex/index', () => {
});

it('extracts with combination strategy: sets replaceString when current digest group present', async () => {
const config = {
const config: CustomExtractConfig = {
matchStringsStrategy: 'combination',
matchStrings: [
'image:\\s+(?<depName>[a-z-]+)(?::(?<currentValue>[a-z0-9.-]+))?(?:@(?<currentDigest>sha256:[a-f0-9]+))?',
],
Expand Down

0 comments on commit 8b44771

Please sign in to comment.