diff --git a/backend/src/tasks/test/search-sync.test.ts b/backend/src/tasks/test/search-sync.test.ts index c49384c7..6a72ce2b 100644 --- a/backend/src/tasks/test/search-sync.test.ts +++ b/backend/src/tasks/test/search-sync.test.ts @@ -46,13 +46,6 @@ describe('search_sync', () => { }).save(); await searchSync(organization.id); - // { - // organizationId: organization.id, - // organizationName: 'organizationName', - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } expect(updateDomains).not.toBeCalled(); }); @@ -73,13 +66,6 @@ describe('search_sync', () => { }).save(); await searchSync(organization.id); - // { - // organizationId: organization.id, - // organizationName: 'organizationName', - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } expect(updateDomains).toBeCalled(); }); @@ -100,13 +86,7 @@ describe('search_sync', () => { }).save(); await searchSync(organization.id); - // { - // organizationId: organization.id, - // organizationName: 'organizationName', - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } + expect(updateDomains).not.toBeCalled(); }); @@ -125,13 +105,6 @@ describe('search_sync', () => { }).save(); await searchSync(organization.id); - // { - // organizationId: organization.id, - // organizationName: 'organizationName', - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } expect(updateDomains).toBeCalled(); }); @@ -151,13 +124,6 @@ describe('search_sync', () => { }).save(); await searchSync(organization.id); - // { - // organizationId: organization.id, - // organizationName: 'organizationName', - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } expect(updateDomains).not.toBeCalled(); }); @@ -179,13 +145,6 @@ describe('search_sync', () => { }).save(); await searchSync(organization.id); - // { - // organizationId: organization.id, - // organizationName: 'organizationName', - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } expect(updateDomains).toBeCalled(); }); @@ -207,13 +166,6 @@ describe('search_sync', () => { }).save(); await searchSync(organization.id); - // { - // organizationId: organization.id, - // organizationName: 'organizationName', - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } expect(updateDomains).not.toBeCalled(); }); @@ -240,13 +192,6 @@ describe('search_sync', () => { }).save(); await searchSync(organization.id); - // { - // organizationId: organization.id, - // organizationName: 'organizationName', - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } expect(updateDomains).toBeCalled(); expect( @@ -280,12 +225,6 @@ describe('search_sync', () => { ); await searchSync(organization.id); - // { - // organizationId: organization.id, - // scanId: 'scanId', - // scanName: 'scanName', - // scanTaskId: 'scanTaskId' - // } expect(updateDomains).toBeCalledTimes(2); }); diff --git a/frontend/src/components/DrawerInterior.tsx b/frontend/src/components/DrawerInterior.tsx index 47bce71f..002687c7 100644 --- a/frontend/src/components/DrawerInterior.tsx +++ b/frontend/src/components/DrawerInterior.tsx @@ -179,7 +179,6 @@ export const DrawerInterior: React.FC = (props) => { ) : []; - console.log('facets', facets['vulnerabilities.severity']); const titleCaseSeverityFacet = facets['vulnerabilities.severity'] ? facets['vulnerabilities.severity'][0].data.map( (d: { value: string; count: number }) => {