Skip to content

Commit

Permalink
Fix formatting issues in profileController.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnelson98 committed Jun 9, 2024
1 parent 741b03c commit 005bb2d
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions __tests__/profileController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ describe('Profile Controller Tests', () => {
availabilityForNetworking: true,
careerInformation: {
currentPosition: {
company: "CodeHammers",
title: "Developer"
company: 'CodeHammers',
title: 'Developer',
},
pastPositions: [
{
company: "CodeHammers",
title: "Junior Developer",
startDate: "2020-01-01",
endDate: "2021-01-01"
}
]
company: 'CodeHammers',
title: 'Junior Developer',
startDate: '2020-01-01',
endDate: '2021-01-01',
},
],
},
cohort: 'ECRI-TEST',
email: '[email protected]',
Expand All @@ -136,29 +136,29 @@ describe('Profile Controller Tests', () => {
(Profile.findOneAndUpdate as jest.Mock).mockResolvedValue({
_id: '65117c94f000c9930ef5c0ee',
availabilityForNetworking: true,
careerInformation: {
currentPosition: {
company: "CodeHammers",
title: "Developer"
},
pastPositions: [
{
company: "CodeHammers",
title: "Junior Developer",
startDate: "2020-01-01",
endDate: "2021-01-01"
}
]
careerInformation: {
currentPosition: {
company: 'CodeHammers',
title: 'Developer',
},
cohort: 'ECRI-TEST',
email: '[email protected]',
gitHubProfile: 'Ghub',
linkedInProfile: 'Lin',
nickName: 'Johnny',
personalBio: 'I love dogs!',
skills: ['Javascript', 'Typescript', 'React', 'Nodejs'],
socialMediaLinks: 'SMlinks',
specializations: ['Javascript', 'React'],
pastPositions: [
{
company: 'CodeHammers',
title: 'Junior Developer',
startDate: '2020-01-01',
endDate: '2021-01-01',
},
],
},
cohort: 'ECRI-TEST',
email: '[email protected]',
gitHubProfile: 'Ghub',
linkedInProfile: 'Lin',
nickName: 'Johnny',
personalBio: 'I love dogs!',
skills: ['Javascript', 'Typescript', 'React', 'Nodejs'],
socialMediaLinks: 'SMlinks',
specializations: ['Javascript', 'React'],
});

await updateProfile(mockRequest as Request, mockResponse as Response, mockNext);
Expand Down

0 comments on commit 005bb2d

Please sign in to comment.