diff --git a/projects/demo-integrations/cypress/tests/addons/phone/phone-non-strict.cy.ts b/projects/demo-integrations/cypress/tests/addons/phone/phone-non-strict.cy.ts index e1e3b8fc8..a0af13a7f 100644 --- a/projects/demo-integrations/cypress/tests/addons/phone/phone-non-strict.cy.ts +++ b/projects/demo-integrations/cypress/tests/addons/phone/phone-non-strict.cy.ts @@ -102,7 +102,7 @@ describe('Phone', () => { .type('{leftArrow}'.repeat('-32'.length)) .realPress([ 'Shift', - ...Array('11'.length).fill('ArrowLeft'), + ...new Array('11'.length).fill('ArrowLeft'), ]); cy.get('@input') @@ -117,7 +117,7 @@ describe('Phone', () => { .type('{leftArrow}') .realPress([ 'Shift', - ...Array('1-3'.length).fill('ArrowLeft'), + ...new Array('1-3'.length).fill('ArrowLeft'), ]); cy.get('@input') @@ -138,7 +138,7 @@ describe('Phone', () => { .type('{leftArrow}'.repeat('-32'.length)) .realPress([ 'Shift', - ...Array('11'.length).fill('ArrowLeft'), + ...new Array('11'.length).fill('ArrowLeft'), ]); cy.get('@input') @@ -153,7 +153,7 @@ describe('Phone', () => { .type('{leftArrow}') .realPress([ 'Shift', - ...Array('1-3'.length).fill('ArrowLeft'), + ...new Array('1-3'.length).fill('ArrowLeft'), ]); cy.get('@input') diff --git a/projects/phone/src/lib/masks/phone/phone-mask-free.ts b/projects/phone/src/lib/masks/phone/phone-mask-free.ts index e3746e1ab..6ee64c76c 100644 --- a/projects/phone/src/lib/masks/phone/phone-mask-free.ts +++ b/projects/phone/src/lib/masks/phone/phone-mask-free.ts @@ -15,7 +15,7 @@ export function maskitoPhoneFreeOptionsGenerator({ metadata: MetadataJson; }): Required { const formatter = new AsYouType(defaultIsoCode, metadata); - const prefix = `+`; + const prefix = '+'; return { ...MASKITO_DEFAULT_OPTIONS,