File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
projects/igniteui-angular/src/lib/directives/mask Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -129,20 +129,17 @@ describe('igxMask', () => {
129
129
it ( 'Enter value with a preset mask and value' , fakeAsync ( ( ) => {
130
130
const fixture = TestBed . createComponent ( MaskComponent ) ;
131
131
fixture . detectChanges ( ) ;
132
+ tick ( ) ; // NgModel updateValue Promise
132
133
133
134
const comp = fixture . componentInstance ;
134
135
const input = comp . input ;
135
136
136
- input . nativeElement . dispatchEvent ( new Event ( 'input' ) ) ;
137
- tick ( ) ;
138
137
139
138
expect ( input . nativeElement . value ) . toEqual ( '(123) 4567-890' ) ;
140
139
expect ( comp . value ) . toEqual ( '1234567890' ) ;
141
140
142
141
comp . value = '7777' ;
143
142
fixture . detectChanges ( ) ;
144
-
145
- input . nativeElement . dispatchEvent ( new Event ( 'input' ) ) ;
146
143
tick ( ) ;
147
144
148
145
expect ( input . nativeElement . value ) . toEqual ( '(777) 7___-___' ) ;
You can’t perform that action at this time.
0 commit comments