-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: FLUI-146 fix date test and typo #565
base: master
Are you sure you want to change the base?
Conversation
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟢 | Statements | 100% | 0/0 |
🟢 | Branches | 100% | 0/0 |
🟢 | Functions | 100% | 0/0 |
🟢 | Lines | 100% | 0/0 |
Test suite run success
0 tests passing in 0 suite.
Report generated by 🧪jest coverage report action from 4290432
Project Coverage and TestStatements : 34.29% ( 10633/31005 ) Test Suites: 58 passed, 58 total |
const startYear = new Date(today.getFullYear(), 0, 1); | ||
const endPeriodTime = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 2); | ||
|
||
const randomDate = new Date( |
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.
Pourquoi avoir une date random et non fixe ?
Il me semble qu'il est préférable d'avoir des tests prédictibles pour les tests.
expect(getRelativeDate(yesterday, format)).toEqual('yesteday'); | ||
expect(getRelativeDate(yesterday, format)).toEqual('yesterday'); | ||
}); | ||
test('should return this years date', () => { |
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.
should return this year date
non ?
fix: fix date test and typo
Description
Acceptance Criterias
Links
Extra Validation
Screenshot or Video
Before
After
QA
Steps to validate
Mention