-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#230 experience and studies sorted by date #234
Feature/#230 experience and studies sorted by date #234
Conversation
@@ -0,0 +1,15 @@ | |||
import { ExperienceVm } from './experience-section.vm'; | |||
import { dateExtractor, sortByDate } from '../../helpers'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '@/helpers' on import and move it at first line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With import in this way I get test failures
export const mapSortedRolesIntoExperience = (experience: ExperienceVm[]): ExperienceVm[] => | ||
experience.map(experienceItem => sortRolesByDate(experienceItem)); | ||
|
||
export const sortExperienceByDate = (experience: ExperienceVm[]): ExperienceVm[] => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference between sortExperienceByDate and sortByDate functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In sortExperienceByDate, specifies that the sorting is performed on the first element of the array as a parameter of dateExtractor
@@ -1,6 +1,7 @@ | |||
import { ManfredAwesomicCV } from '../../model'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '@/model'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
@@ -0,0 +1,5 @@ | |||
import { sortByDate } from '../../helpers'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '@/helpers"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as with experience. With import in this way I get test failures
Added missing typing on 'b' in sortExperienceByDate function |
No description provided.