-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix formatting issues in profileController.test.ts
- Loading branch information
Showing
1 changed file
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]', | ||
|
@@ -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); | ||
|