Skip to content

Commit

Permalink
revert linter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 committed May 3, 2023
1 parent 1794edb commit d594c56
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions __tests__/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,9 @@ it('Release Diff', async () => {
configuration: customConfig
})

expect(resultChangelog).toStrictEqual(`https://github.com/mikepenz/release-changelog-builder-action/compare/v2.8.0...v2.8.1\n`)
expect(resultChangelog).toStrictEqual(
`https://github.com/mikepenz/release-changelog-builder-action/compare/v2.8.0...v2.8.1\n`
)
})

it('Use exclude labels to not include a PR within a category.', async () => {
Expand Down Expand Up @@ -530,6 +532,7 @@ it('Extract custom placeholder from PR body and replace in global template', asy
)
})


it('Use Rules to include a PR within a Category.', async () => {
const customConfig = Object.assign({}, DefaultConfiguration)
customConfig.categories = [
Expand All @@ -539,12 +542,12 @@ it('Use Rules to include a PR within a Category.', async () => {
exclude_labels: ['Fix'],
rules: [
{
pattern: '[ABC-1234]',
on_property: 'title'
pattern: "\[ABC-1234\]",
on_property: "title"
},
{
pattern: 'merged',
on_property: 'status'
pattern: "merged",
on_property: "status"
}
],
exhaustive: true
Expand All @@ -565,8 +568,8 @@ it('Use Rules to get all open PRs in a Category.', async () => {
title: '## Open PRs only',
rules: [
{
pattern: 'open',
on_property: 'status'
pattern: "open",
on_property: "status"
}
]
}
Expand Down Expand Up @@ -624,8 +627,8 @@ it('Use Rules to get all open PRs in one Category and merged categorised.', asyn
title: '## Open PRs only',
rules: [
{
pattern: 'open',
on_property: 'status'
pattern: "open",
on_property: "status"
}
]
},
Expand All @@ -634,11 +637,11 @@ it('Use Rules to get all open PRs in one Category and merged categorised.', asyn
labels: ['Feature', 'Issue'],
rules: [
{
pattern: 'merged',
on_property: 'status'
pattern: "merged",
on_property: "status"
}
],
exhaustive: true
exhaustive: true,
}
]
expect(buildChangelogTest(customConfig, prs)).toStrictEqual(
Expand Down

0 comments on commit d594c56

Please sign in to comment.