Skip to content

Commit

Permalink
[issue-3106] Display last release not when no version is provided (#3188
Browse files Browse the repository at this point in the history
)

* [issue-3106] Display last release not when no version is provided

* correct test

* Fix release_name for tests

* update snapshots

* update snapshots 2
  • Loading branch information
xavierfacq authored Nov 6, 2024
1 parent 41df61f commit c6179e3
Show file tree
Hide file tree
Showing 5 changed files with 850 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe('ReleaseNotesRender component', () => {

function mockReleaseNotes(num: number) {
let releaseNoteDataBag = { releaseNoteAPIResponse :createMockReleaseNotesAPI(num), isValid: true };
releaseNoteDataBag.releaseNoteAPIResponse.release_name = 'jdk-20+36';
releaseNoteDataBag.releaseNoteAPIResponse.release_notes[0].type = 'Enhancement';
return releaseNoteDataBag;
}
Expand All @@ -92,6 +93,7 @@ describe('ReleaseNotesRender component', () => {
queryString.parse = vi.fn().mockReturnValue({'version': 'version'});
function mockReleaseNotes() {
let releaseNoteDataBag = { releaseNoteAPIResponse :createMockReleaseNotesAPI(1), isValid: true };
releaseNoteDataBag.releaseNoteAPIResponse.release_name = 'version';
releaseNoteDataBag.releaseNoteAPIResponse.release_notes[0].priority = undefined;
return releaseNoteDataBag;
}
Expand Down
Loading

0 comments on commit c6179e3

Please sign in to comment.