Skip to content

Commit

Permalink
Merge pull request #2428 from fecgov/feature/1782
Browse files Browse the repository at this point in the history
feature/1782 - Removing unnecessary console.log
  • Loading branch information
toddlees authored Dec 2, 2024
2 parents a6592ea + e8b05e3 commit 00c78c2
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 12 deletions.
2 changes: 0 additions & 2 deletions front-end/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export function safeType(prevSubject: any, stringVal: string | number) {

if (outString.length != 0) {
subject.type(outString);
} else {
console.log(`Skipped typing into ${subject.toString()}} because the string was empty`);
}

return subject; //Allows Cypress methods to chain off of this command like normal (IE Cy.get().safe_type().parent().click() and so on)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ describe('CreateF3XStep1Component', () => {
{ updateOn: 'blur' },
);
validator(group);
console.log(group.get('coverage_from_date')?.errors);

expect(group.get('coverage_from_date')?.errors).toEqual(
expectedFromMessage ? { invaliddate: { msg: expectedFromMessage } } : null,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('TransactionDetailComponent', () => {
const saveSpy = spyOn(component, 'save');

component.form.patchValue({ ...transaction, ...{ contributor_state: 'not-valid' } });
console.log('HEY LISTEN', component.form);

component.handleNavigate(new NavigationEvent(NavigationAction.SAVE, NavigationDestination.LIST, transaction));
expect(component.form.invalid).toBe(true);
expect(navSpy).not.toHaveBeenCalled();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ describe('SelectReportDialogComponent', () => {
component.selectedReport = component.availableReports[0];
try {
await component.createReattribution();
} catch {
console.log("shouldn't go here");
} finally {
const route = `/reports/transactions/report/${component.selectedReport.id}/create/${testScheduleATransaction.transaction_type_identifier}?reattribution=${testScheduleATransaction.id}`;
expect(routerSpy).toHaveBeenCalledWith(route);
}
const route = `/reports/transactions/report/${component.selectedReport.id}/create/${testScheduleATransaction.transaction_type_identifier}?reattribution=${testScheduleATransaction.id}`;
expect(routerSpy).toHaveBeenCalledWith(route);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ export class TransactionContactUtils {
config,
transaction,
);
console.log(contactChanges);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
contactChanges.forEach(([property, value]: [keyof Contact, any]) => {
contact[property] = value as never;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ export class TransactionFormUtils {
...formValues,
});

console.log(payload);

// The linkedF3xId form control is only present on the linked report input component
// If this is present, we add its value as an ID to the payload's report ids
const secondaryReportId = form.get('linkedF3xId')?.value;
Expand Down
1 change: 0 additions & 1 deletion front-end/src/app/shared/services/poller.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class PollerService {
const remoteMainScript = matchResponses && matchResponses.length > 0 ? matchResponses[1] : undefined;

if (!remoteMainScript) {
console.log('Could not find main script in index.html');
this.isNewVersionAvailable.next(false);
return;
}
Expand Down

0 comments on commit 00c78c2

Please sign in to comment.