Skip to content

Commit

Permalink
Removed console.logs and commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkishpolicy committed Dec 18, 2024
1 parent 537da7e commit 86bb333
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
63 changes: 1 addition & 62 deletions backend/src/tasks/test/search-sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand All @@ -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();
});
Expand All @@ -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();
});

Expand All @@ -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();
});
Expand All @@ -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();
});
Expand All @@ -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();
});
Expand All @@ -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();
});
Expand All @@ -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(
Expand Down Expand Up @@ -280,12 +225,6 @@ describe('search_sync', () => {
);

await searchSync(organization.id);
// {
// organizationId: organization.id,
// scanId: 'scanId',
// scanName: 'scanName',
// scanTaskId: 'scanTaskId'
// }

expect(updateDomains).toBeCalledTimes(2);
});
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/DrawerInterior.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ export const DrawerInterior: React.FC<Props> = (props) => {
)
: [];

console.log('facets', facets['vulnerabilities.severity']);
const titleCaseSeverityFacet = facets['vulnerabilities.severity']
? facets['vulnerabilities.severity'][0].data.map(
(d: { value: string; count: number }) => {
Expand Down

0 comments on commit 86bb333

Please sign in to comment.