Skip to content

Commit

Permalink
feat(datepicker): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dilandoogan committed Dec 24, 2024
1 parent b5067a7 commit ef611e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/datepicker/bl-datepicker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ describe("BlDatepicker", () => {
it("should return an array of dates when value is an array of Dates", () => {
const dates = [new Date("2024-01-01"), new Date("2024-02-01")];

element.type=CALENDAR_TYPES.MULTIPLE;
element.value = dates;
expect(element.value).to.deep.equal(dates);

expect(element.value).to.equal(dates);
});

it("should return undefined if value is not set", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class DatepickerCalendarMixin extends LitElement {
);
} else {
this._value = value;
this._selectedDates.splice(0, this._selectedDates.length, ...tempVal);
this._selectedDates = tempVal;
}
}

Expand Down

0 comments on commit ef611e5

Please sign in to comment.