Skip to content

Commit

Permalink
Fixed lint errors for InstructorRequestForm
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoSavalaML committed May 21, 2024
1 parent b9bc5d3 commit b9793d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ describe('InstructorRequestFormComponent', () => {
instructorInstitution: `${unitedStatesModel.institution}, USA`,
};
fillFormWith(unitedStatesModel);
component.onSubmit()
component.onSubmit();

expect(accountService.createAccountRequest).toHaveBeenCalledTimes(1);
expect(accountService.createAccountRequest).toHaveBeenCalledWith(expect.objectContaining(unitedStatesCreateRequest));

expect(accountService.createAccountRequest).toHaveBeenCalledWith(
expect.objectContaining(unitedStatesCreateRequest));
});

});
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,12 @@ export class InstructorRequestFormComponent {
// Country Mapping
const countryMapping: { [key: string]: string } = {
'United States': 'USA',
'US': 'USA',
'America': 'USA',
'UK': 'United Kingdom',
'Deutschland': 'Germany',
US: 'USA',
America: 'USA',
UK: 'United Kingdom',
Deutschland: 'Germany',
};


// Combine country and institution
const country = this.country.value!.trim();
const mappedCountry = countryMapping[country] || country;
Expand Down

0 comments on commit b9793d0

Please sign in to comment.