- fix tests

This commit is contained in:
Mike Penz
2025-02-17 21:37:42 +01:00
parent 19c820b835
commit c44347b677
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ it('Configurations are merged correctly', async () => {
expect(expectedStringified).toEqual( expect(expectedStringified).toEqual(
`{ `{
"max_tags_to_fetch": 200, "max_tags_to_fetch": 100,
"max_pull_requests": 1000, "max_pull_requests": 1000,
"max_back_track_time_days": 1000, "max_back_track_time_days": 1000,
"exclude_merge_branches": [], "exclude_merge_branches": [],
+1
View File
@@ -11,6 +11,7 @@ const token = process.env.GITHUB_TOKEN || ''
const githubRepository = new GithubRepository(token, undefined, '.') const githubRepository = new GithubRepository(token, undefined, '.')
it('[Github] Should match generated changelog (unspecified fromTag)', async () => { it('[Github] Should match generated changelog (unspecified fromTag)', async () => {
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs/configuration.json')) const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs/configuration.json'))
configuration.max_tags_to_fetch = 300 // we change to load less, but those tests are pretty old releases
const releaseNotesBuilder = new ReleaseNotesBuilder( const releaseNotesBuilder = new ReleaseNotesBuilder(
null, null,
githubRepository, githubRepository,