Merge pull request #786 from MathieuPuech/fix/date-timezone-test
tests: timezone and locale
This commit is contained in:
commit
60617b9ffc
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue