File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
projects/ngx-mask-lib/src/test Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,18 @@ describe('Separator: Mask', () => {
135135 equal ( '1000000' , '1.000.000' , fixture ) ;
136136 } ) ;
137137
138+ it ( 'should not accept more than one minus signal at the beginning of input for separator thousandSeparator . for --1000' , ( ) => {
139+ component . mask = 'separator' ;
140+ component . thousandSeparator = '.' ;
141+ equal ( '--1000' , '-1.000' , fixture ) ;
142+ } ) ;
143+
144+ it ( 'should not accept more than one minus signal for separator thousandSeparator . for -100-0000' , ( ) => {
145+ component . mask = 'separator' ;
146+ component . thousandSeparator = '.' ;
147+ equal ( '-100-0000' , '-1.000.000' , fixture ) ;
148+ } ) ;
149+
138150 it ( 'should limit separator thousandSeparator . to 100000' , ( ) => {
139151 component . mask = 'separator' ;
140152 component . thousandSeparator = '.' ;
You can’t perform that action at this time.
0 commit comments