chore: make test date independent
This commit is contained in:
parent
d0b36f4d7e
commit
c6556ce056
1 changed files with 4 additions and 1 deletions
|
|
@ -815,7 +815,10 @@ describe('<lion-calendar>', () => {
|
|||
|
||||
it('is on day closest to today, if today (and surrounding dates) is/are disabled', async () => {
|
||||
const el = await fixture(html`
|
||||
<lion-calendar .disableDates="${d => d.getDate() <= 16}"></lion-calendar>
|
||||
<lion-calendar
|
||||
.centralDate="${new Date('2000/12/15')}"
|
||||
.disableDates="${d => d.getDate() <= 16}"
|
||||
></lion-calendar>
|
||||
`);
|
||||
const elObj = new CalendarObject(el);
|
||||
expect(elObj.centralDayObj.monthday).to.equal(17);
|
||||
|
|
|
|||
Loading…
Reference in a new issue