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
|
||||
name="date"
|
||||
label="Date of application"
|
||||
.modelValue="${new Date('2000-12-12')}"
|
||||
.modelValue="${new Date('2000/12/12')}"
|
||||
.validators="${[new Required()]}"
|
||||
></lion-input-date>
|
||||
<lion-input-datepicker
|
||||
name="datepicker"
|
||||
label="Date to be picked"
|
||||
.modelValue="${new Date('2020-12-12')}"
|
||||
.modelValue="${new Date('2020/12/12')}"
|
||||
.validators="${[new Required()]}"
|
||||
></lion-input-datepicker>
|
||||
<lion-textarea
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ describe('parseAmount()', () => {
|
|||
it('parseAmount with locale set and length is more than four', () => {
|
||||
expect(
|
||||
parseAmount('6,000', {
|
||||
locale: 'gb-GB',
|
||||
locale: 'en-GB',
|
||||
}),
|
||||
).to.equal(6000);
|
||||
expect(
|
||||
|
|
|
|||
Loading…
Reference in a new issue