Merge pull request #786 from MathieuPuech/fix/date-timezone-test

tests: timezone and locale
This commit is contained in:
gerjanvangeest 2020-06-29 11:26:37 +02:00 committed by GitHub
commit 60617b9ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -44,13 +44,13 @@ export class UmbrellaForm extends LitElement {
<lion-input-date <lion-input-date
name="date" name="date"
label="Date of application" label="Date of application"
.modelValue="${new Date('2000-12-12')}" .modelValue="${new Date('2000/12/12')}"
.validators="${[new Required()]}" .validators="${[new Required()]}"
></lion-input-date> ></lion-input-date>
<lion-input-datepicker <lion-input-datepicker
name="datepicker" name="datepicker"
label="Date to be picked" label="Date to be picked"
.modelValue="${new Date('2020-12-12')}" .modelValue="${new Date('2020/12/12')}"
.validators="${[new Required()]}" .validators="${[new Required()]}"
></lion-input-datepicker> ></lion-input-datepicker>
<lion-textarea <lion-textarea

View file

@ -153,7 +153,7 @@ describe('parseAmount()', () => {
it('parseAmount with locale set and length is more than four', () => { it('parseAmount with locale set and length is more than four', () => {
expect( expect(
parseAmount('6,000', { parseAmount('6,000', {
locale: 'gb-GB', locale: 'en-GB',
}), }),
).to.equal(6000); ).to.equal(6000);
expect( expect(