Merge pull request #56 from ing-bank/chore/fixDateDependentTest
Fix date dependent test (fixes #54)
This commit is contained in:
commit
3fa6249c6a
2 changed files with 12 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 () => {
|
it('is on day closest to today, if today (and surrounding dates) is/are disabled', async () => {
|
||||||
const el = await fixture(html`
|
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);
|
const elObj = new CalendarObject(el);
|
||||||
expect(elObj.centralDayObj.monthday).to.equal(17);
|
expect(elObj.centralDayObj.monthday).to.equal(17);
|
||||||
|
|
|
||||||
|
|
@ -1697,6 +1697,14 @@
|
||||||
npmlog "^4.1.2"
|
npmlog "^4.1.2"
|
||||||
write-file-atomic "^2.3.0"
|
write-file-atomic "^2.3.0"
|
||||||
|
|
||||||
|
"@lion/localize@^0.1.6":
|
||||||
|
version "0.1.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/@lion/localize/-/localize-0.1.7.tgz#2f0eb725fbe5fa8842985140ae3a6f0dfbd732d6"
|
||||||
|
integrity sha512-6ayWBoBI6W9pwOS6qUKBo3lUltniv8v9/xcRGm3IH5+7tbeR6/3mWILwz69MvNaoj7MQhHEF7Ox746o0qIgbFw==
|
||||||
|
dependencies:
|
||||||
|
"@bundled-es-modules/message-format" "6.0.4"
|
||||||
|
"@lion/core" "^0.1.4"
|
||||||
|
|
||||||
"@marionebl/sander@^0.6.0":
|
"@marionebl/sander@^0.6.0":
|
||||||
version "0.6.1"
|
version "0.6.1"
|
||||||
resolved "https://registry.yarnpkg.com/@marionebl/sander/-/sander-0.6.1.tgz#1958965874f24bc51be48875feb50d642fc41f7b"
|
resolved "https://registry.yarnpkg.com/@marionebl/sander/-/sander-0.6.1.tgz#1958965874f24bc51be48875feb50d642fc41f7b"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue