Skip to content

Commit

Permalink
fixing broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
latin-panda committed Nov 8, 2024
1 parent b91a323 commit 872cf18
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class TrainingCardsFormComponent implements OnInit, OnDestroy {
await this.ngZone.run(() => this.renderForm(form));
} catch (error) {
this.setError(error);
console.error('Trainings Content Component :: Error fetching form.', error);
console.error('TrainingCardsFormComponent :: Error fetching form.', error);
}
}

Expand All @@ -126,7 +126,7 @@ export class TrainingCardsFormComponent implements OnInit, OnDestroy {
this.recordPerformancePostRender();
} catch (error) {
this.setError(error);
console.error('Trainings Content Component :: Error rendering form.', error);
console.error('TrainingCardsFormComponent :: Error rendering form.', error);
}
}

Expand Down Expand Up @@ -179,7 +179,7 @@ export class TrainingCardsFormComponent implements OnInit, OnDestroy {

async saveForm() {
if (this.enketoSaving) {
console.debug('Attempted to call TrainingsContentComponent.saveForm more than once');
console.debug('Attempted to call TrainingCardsFormComponent:saveForm more than once');
return;
}

Expand All @@ -199,7 +199,7 @@ export class TrainingCardsFormComponent implements OnInit, OnDestroy {
this.save.emit();
} catch (error) {
this.globalActions.setEnketoSavingStatus(false);
console.error('Trainings Content Component :: Error submitting form data.', error);
console.error('TrainingCardsFormComponent :: Error submitting form data.', error);
const friendlyMessage = await this.translateService.get('training_cards.error.save');
this.globalActions.setEnketoError(friendlyMessage);
}
Expand Down

0 comments on commit 872cf18

Please sign in to comment.