Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: TT-167 Date picker disable future dates
  • Loading branch information
wobravo committed Mar 1, 2021
commit 36a3b9b75ab77db2333ff2883adbadbeb37da737
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ describe('DetailsFieldsComponent', () => {
expect(startDateInput.value).toEqual(expectedStartDate);
});

it('on get actual date should return the actual date in isoString ', () => {
it('on get actual date should return the current date', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update the references and the name of the test. Something like:
On get current date should return expected date

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actualDateExpected to expectedDate

const actualDateExpected = new Date().toISOString().split('T')[0];

expect(component.getActualDate()).toEqual(actualDateExpected);
Expand Down