@@ -58,7 +58,7 @@ describe('mixinOnReportValidity()', () => {
58
58
control [ onReportValidity ] = jasmine . createSpy ( 'onReportValidity' ) ;
59
59
60
60
control . reportValidity ( ) ;
61
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith ( null ) ;
61
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith ( null ) ;
62
62
} ) ;
63
63
} ) ;
64
64
@@ -69,7 +69,7 @@ describe('mixinOnReportValidity()', () => {
69
69
70
70
control . required = true ;
71
71
control . reportValidity ( ) ;
72
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith (
72
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith (
73
73
jasmine . any ( Event ) ,
74
74
) ;
75
75
} ) ;
@@ -101,7 +101,7 @@ describe('mixinOnReportValidity()', () => {
101
101
control . checked = true ;
102
102
control . reportValidity ( ) ;
103
103
104
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith ( null ) ;
104
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith ( null ) ;
105
105
} ) ;
106
106
} ) ;
107
107
@@ -114,7 +114,7 @@ describe('mixinOnReportValidity()', () => {
114
114
form . appendChild ( control ) ;
115
115
116
116
form . reportValidity ( ) ;
117
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith ( null ) ;
117
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith ( null ) ;
118
118
} ) ;
119
119
120
120
it ( 'should be called with null when form.requestSubmit() is called and it is valid' , ( ) => {
@@ -134,7 +134,7 @@ describe('mixinOnReportValidity()', () => {
134
134
document . body . appendChild ( form ) ;
135
135
form . requestSubmit ( ) ;
136
136
form . remove ( ) ;
137
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith ( null ) ;
137
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith ( null ) ;
138
138
} ) ;
139
139
140
140
it ( 'should be called with null when form submits declaratively and it is valid' , ( ) => {
@@ -156,7 +156,7 @@ describe('mixinOnReportValidity()', () => {
156
156
document . body . appendChild ( form ) ;
157
157
submitButton . click ( ) ;
158
158
form . remove ( ) ;
159
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith ( null ) ;
159
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith ( null ) ;
160
160
} ) ;
161
161
} ) ;
162
162
@@ -169,7 +169,7 @@ describe('mixinOnReportValidity()', () => {
169
169
170
170
control . required = true ;
171
171
form . reportValidity ( ) ;
172
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith (
172
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith (
173
173
jasmine . any ( Event ) ,
174
174
) ;
175
175
} ) ;
@@ -209,7 +209,7 @@ describe('mixinOnReportValidity()', () => {
209
209
control . required = true ;
210
210
form . requestSubmit ( ) ;
211
211
form . remove ( ) ;
212
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith (
212
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith (
213
213
jasmine . any ( Event ) ,
214
214
) ;
215
215
} ) ;
@@ -263,7 +263,7 @@ describe('mixinOnReportValidity()', () => {
263
263
document . body . appendChild ( form ) ;
264
264
submitButton . click ( ) ;
265
265
form . remove ( ) ;
266
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith (
266
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith (
267
267
jasmine . any ( Event ) ,
268
268
) ;
269
269
} ) ;
@@ -315,7 +315,7 @@ describe('mixinOnReportValidity()', () => {
315
315
form . reportValidity ( ) ;
316
316
form . remove ( ) ;
317
317
318
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith ( null ) ;
318
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith ( null ) ;
319
319
} ) ;
320
320
321
321
it ( 'should be called with null when form.requestSubmit() is called after fixing invalid' , ( ) => {
@@ -345,7 +345,7 @@ describe('mixinOnReportValidity()', () => {
345
345
form . requestSubmit ( ) ;
346
346
form . remove ( ) ;
347
347
348
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith ( null ) ;
348
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith ( null ) ;
349
349
} ) ;
350
350
351
351
it ( 'should be called with null when form submits declaratively after fixing invalid' , ( ) => {
@@ -377,7 +377,7 @@ describe('mixinOnReportValidity()', () => {
377
377
submitButton . click ( ) ;
378
378
form . remove ( ) ;
379
379
380
- expect ( control [ onReportValidity ] ) . toHaveBeenCalledWith ( null ) ;
380
+ expect ( control [ onReportValidity ] ) . toHaveBeenCalledOnceWith ( null ) ;
381
381
} ) ;
382
382
} ) ;
383
383
0 commit comments