-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: correct pattern examples #434
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Anbraten <[email protected]>
])('given %p pattern', async (pattern: string, expected: boolean) => { | ||
])('given %s pattern', async (pattern: string, expected: boolean) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%p
is a jest positional formatting placeholder that uses pretty-format to stringify the parameter. IOW, unless there's a compelling reason to change it to %s
, I don't see why that needs to be messed with.
])('given %p with %p event', tagsLabelsTest); | ||
])('given %s with %s event', tagsLabelsTest); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
])('given %p with %p event', tagsLabelsTest); | ||
])('given %s with %s event', tagsLabelsTest); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
])('given %p with %p event', tagsLabelsTest); | ||
])('given %s with %s event', tagsLabelsTest); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
])('given %p with %p event', tagsLabelsTest); | ||
])('given %s with %s event', tagsLabelsTest); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
])('given %p wth %p event', tagsLabelsTest); | ||
])('given %s wth %s event', tagsLabelsTest); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exJSON: unknown) => { | ||
])('given %s with %s event', async (name: string, envFile: string, inputs: Inputs, exJSON: unknown) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exBakeTags: unknown, exBakeLabels: unknown, exBakeAnnotations: unknown) => { | ||
])('given %s with %s event', async (name: string, envFile: string, inputs: Inputs, exBakeTags: unknown, exBakeLabels: unknown, exBakeAnnotations: unknown) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exBakeDefinition: unknown) => { | ||
])('given %s with %s event', async (name: string, envFile: string, inputs: Inputs, exBakeDefinition: unknown) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => { | ||
])('given %s with %s event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
The samples provided for the match patterns mainly used
\d.
where.
is treated as the regex wildcard instead of the expected dot char. In addition semver versions with a version part>9
were not correctly extracted by those examples.