Skip to content

Commit

Permalink
fix: adjust tests to the correct key
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroPP committed Jan 28, 2025
1 parent c7c3283 commit f67cce3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('CVEFormContent', () => {

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

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

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

it('should render multiple packages ', () => {
formikRenderer(<CVEFormContent modalToggle={null} />, {
id: 'CVE-120',
key: 'CVE-120',
components: [
{ name: 'a', packages: ['p1', 'p2', 'p3'] },
{ name: 'b', packages: ['p3', 'p4', 'p3'] },
Expand Down

0 comments on commit f67cce3

Please sign in to comment.