-
Notifications
You must be signed in to change notification settings - Fork 1
feat: #566 Datepicker for departure date in entry form #580
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #580 +/- ##
==========================================
+ Coverage 93.09% 93.36% +0.27%
==========================================
Files 85 92 +7
Lines 1564 1613 +49
Branches 107 105 -2
==========================================
+ Hits 1456 1506 +50
- Misses 67 69 +2
+ Partials 41 38 -3
Continue to review full report at Codecov.
|
eab4210
to
22a3250
Compare
22a3250
to
4aa0c14
Compare
@@ -311,7 +315,7 @@ describe('DetailsFieldsComponent', () => { | |||
spyOn(toastrServiceStub, 'error'); | |||
|
|||
const futureDate = moment().add(1, 'days').format('YYYY-MM-DD'); | |||
component.entryForm.setValue({ ...formValues, entry_date: futureDate }); | |||
component.entryForm.setValue({ ...formValues, entry_date: futureDate, departure_date: futureDate }); | |||
component.onSubmit(); |
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.
You need to add a couple of tests here:
- start_date in the future / end date OK
- start_date OK / end date in the future
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.
@enriquezrene done
Uh oh!
There was an error while loading. Please reload this page.