Skip to content

Commit

Permalink
Component: date-time: Remove comparison to now when testing getMoment…
Browse files Browse the repository at this point in the history
…Date (#14230)
  • Loading branch information
psealock authored and youknowriad committed Mar 20, 2019
1 parent b2d394c commit 4aee494
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/components/src/date-time/test/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ describe( 'DatePicker', () => {
const wrapper = shallow( <DatePicker /> );
const date = wrapper.children().props().date;
expect( moment.isMoment( date ) ).toBe( true );
expect( date.isSame( moment(), 'second' ) ).toBe( true );
} );

describe( 'getMomentDate', () => {
Expand All @@ -55,7 +54,6 @@ describe( 'DatePicker', () => {
const momentDate = wrapper.instance().getMomentDate();

expect( moment.isMoment( momentDate ) ).toBe( true );
expect( momentDate.isSame( moment(), 'second' ) ).toBe( true );
} );
} );

Expand Down

0 comments on commit 4aee494

Please sign in to comment.