diff --git a/projects/ui/src/lib/components/po-field/po-input/po-mask.spec.ts b/projects/ui/src/lib/components/po-field/po-input/po-mask.spec.ts index 863832122e..48fb267981 100644 --- a/projects/ui/src/lib/components/po-field/po-input/po-mask.spec.ts +++ b/projects/ui/src/lib/components/po-field/po-input/po-mask.spec.ts @@ -706,6 +706,13 @@ describe('PoMask', () => { expect(mask.valueToModel).toBe('1-1-1'); }); + it('should return value "" to model and validMask return false', () => { + mask.formatModel = true; + mask.formatValue('', '9-9-9'); + expect(mask.valueToModel).toBe(''); + expect(mask.validMask()).toBe(false); + }); + it('should test replaceMask function', () => { expect(mask.replaceMask('0')).toEqual(/[0]/); expect(mask.replaceMask('1')).toEqual(/[0-1]/);