Skip to content

Commit

Permalink
fix tests that relied on month depending on value
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Schultz committed Jan 22, 2018
1 parent 8c310b6 commit 6b42434
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/daypickerinput/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ describe('DayPickerInput', () => {
value="2017-11-8"
clickUnselectsDay
dayPickerProps={{
month: new Date(2017, 1),
month: new Date(2017, 10),
selectedDays: new Date(2017, 10, 8),
}}
/>
Expand All @@ -271,7 +271,7 @@ describe('DayPickerInput', () => {
value="2017-11-8"
clickUnselectsDay
dayPickerProps={{
month: new Date(2017, 1),
month: new Date(2017, 10),
selectedDays: [new Date(2017, 10, 8), new Date(2017, 10, 7)],
}}
/>
Expand Down
4 changes: 2 additions & 2 deletions test/daypickerinput/rendering.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('DayPickerInput', () => {
it("should update the displayed month when `dayPickerProps.month`'s month is updated", () => {
const wrapper = mount(
<DayPickerInput
dayPickerProps={{ month: new Date(2017, 9) }}
dayPickerProps={{ month: new Date(2017, 11) }}
value="2017-12-15"
/>
);
Expand All @@ -163,7 +163,7 @@ describe('DayPickerInput', () => {
it("should update the displayed month when `dayPickerProps.month`'s year is updated", () => {
const wrapper = mount(
<DayPickerInput
dayPickerProps={{ month: new Date(2018, 10) }}
dayPickerProps={{ month: new Date(2017, 11) }}
value="2017-12-15"
/>
);
Expand Down

0 comments on commit 6b42434

Please sign in to comment.