Skip to content

Commit 69348bd

Browse files
committed
fix: adjust tests to the correct key
1 parent 3162f6e commit 69348bd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: src/components/ReleaseService/ReleasePlan/TriggerRelease/AddIssueSection/__tests__/CVEFormContent.spec.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('CVEFormContent', () => {
2626

2727
it('should show correct values', () => {
2828
formikRenderer(<CVEFormContent modalToggle={null} />, {
29-
id: 'CVE-120',
29+
key: 'CVE-120',
3030
components: [
3131
{ name: 'a', packages: ['p1', 'p2', 'p3'] },
3232
{ name: 'b', packages: ['p1', 'p2', 'p3'] },
@@ -37,7 +37,7 @@ describe('CVEFormContent', () => {
3737

3838
it('should render component fields ', async () => {
3939
formikRenderer(<CVEFormContent modalToggle={null} />, {
40-
id: 'CVE-120',
40+
key: 'CVE-120',
4141
components: [
4242
{ name: 'a', packages: ['p1', 'p2', 'p3'] },
4343
{ name: 'b', packages: ['p1', 'p2', 'p3'] },
@@ -52,7 +52,7 @@ describe('CVEFormContent', () => {
5252

5353
it('should remove component fields ', () => {
5454
formikRenderer(<CVEFormContent modalToggle={null} />, {
55-
id: 'CVE-120',
55+
key: 'CVE-120',
5656
components: [
5757
{ name: 'a', packages: ['p1', 'p2', 'p3'] },
5858
{ name: 'b', packages: ['p1', 'p2', 'p3'] },
@@ -80,7 +80,7 @@ describe('CVEFormContent', () => {
8080

8181
it('should render multiple packages ', () => {
8282
formikRenderer(<CVEFormContent modalToggle={null} />, {
83-
id: 'CVE-120',
83+
key: 'CVE-120',
8484
components: [
8585
{ name: 'a', packages: ['p1', 'p2', 'p3'] },
8686
{ name: 'b', packages: ['p3', 'p4', 'p3'] },

Diff for: src/components/ReleaseService/ReleasePlan/TriggerRelease/__tests__/form-utils.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ describe('triggerReleasePlan', () => {
6262
topic: 'topic of release',
6363
references: 'references',
6464
issues: [
65-
{ id: 'RHTAP-5560', summary: 'summary1', url: 'test-url' },
66-
{ id: 'RHTAP-5561', summary: 'summary2', url: 'test-url2' },
67-
{ id: 'RHTAP-5562', summary: 'summary3', url: 'test-url2' },
65+
{ key: 'RHTAP-5560', summary: 'summary1', url: 'test-url' },
66+
{ key: 'RHTAP-5561', summary: 'summary2', url: 'test-url2' },
67+
{ key: 'RHTAP-5562', summary: 'summary3', url: 'test-url2' },
6868
],
6969
labels: [],
7070
},

0 commit comments

Comments
 (0)