@@ -139,16 +139,16 @@ test('must skip updates if text already matches DOM, non-IE', function() {
139
139
< DraftEditorTextNode > { TEST_A } </ DraftEditorTextNode > ,
140
140
) ;
141
141
142
- spyOn ( stub , 'render' ) . and . callThrough ( ) ;
142
+ jest . spyOn ( stub , 'render' ) ;
143
143
144
144
renderIntoContainer ( < DraftEditorTextNode > { TEST_A } </ DraftEditorTextNode > ) ;
145
145
146
- expect ( stub . render . calls . count ( ) ) . toBe ( 0 ) ;
146
+ expect ( stub . render . mock . calls . length ) . toBe ( 0 ) ;
147
147
148
148
// Sanity check that updating is performed when appropriate.
149
149
renderIntoContainer ( < DraftEditorTextNode > { TEST_B } </ DraftEditorTextNode > ) ;
150
150
151
- expect ( stub . render . calls . count ( ) ) . toBe ( 1 ) ;
151
+ expect ( stub . render . mock . calls . length ) . toBe ( 1 ) ;
152
152
} ) ;
153
153
154
154
test ( 'must skip updates if text already matches DOM, IE' , function ( ) {
@@ -157,16 +157,16 @@ test('must skip updates if text already matches DOM, IE', function() {
157
157
< DraftEditorTextNode > { TEST_A } </ DraftEditorTextNode > ,
158
158
) ;
159
159
160
- spyOn ( stub , 'render' ) . and . callThrough ( ) ;
160
+ jest . spyOn ( stub , 'render' ) ;
161
161
162
162
renderIntoContainer ( < DraftEditorTextNode > { TEST_A } </ DraftEditorTextNode > ) ;
163
163
164
- expect ( stub . render . calls . count ( ) ) . toBe ( 0 ) ;
164
+ expect ( stub . render . mock . calls . length ) . toBe ( 0 ) ;
165
165
166
166
// Sanity check that updating is performed when appropriate.
167
167
renderIntoContainer ( < DraftEditorTextNode > { TEST_B } </ DraftEditorTextNode > ) ;
168
168
169
- expect ( stub . render . calls . count ( ) ) . toBe ( 1 ) ;
169
+ expect ( stub . render . mock . calls . length ) . toBe ( 1 ) ;
170
170
} ) ;
171
171
172
172
test ( 'must update from non-empty to empty, non-IE' , function ( ) {
0 commit comments