@@ -71,7 +71,7 @@ describe('<FormControl />', () => {
7171 < TestComponent fn = { testFunction } />
7272 </ FormControl > ,
7373 ) ;
74- assert . strictEqual ( testFunction . calledWithMatch ( { filled : false } ) , true ) ;
74+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . filled , false ) ;
7575 } ) ;
7676
7777 it ( 'should not be focused initially' , ( ) => {
@@ -81,7 +81,7 @@ describe('<FormControl />', () => {
8181 < TestComponent fn = { testFunction } />
8282 </ FormControl > ,
8383 ) ;
84- assert . strictEqual ( testFunction . calledWithMatch ( { focused : false } ) , true ) ;
84+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . focused , false ) ;
8585 } ) ;
8686 } ) ;
8787
@@ -101,12 +101,11 @@ describe('<FormControl />', () => {
101101 < TestComponent fn = { testFunction } />
102102 </ FormControl > ,
103103 ) ;
104- assert . strictEqual ( testFunction . calledWithMatch ( { focused : false } ) , true ) ;
104+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . focused , false ) ;
105105 wrapper . find ( 'input' ) . simulate ( 'focus' ) ;
106- assert . strictEqual ( testFunction . calledWithMatch ( { focused : true } ) , true ) ;
107- testFunction . resetHistory ( ) ;
106+ assert . strictEqual ( testFunction . args [ 1 ] [ 0 ] . focused , true ) ;
108107 wrapper . setProps ( { disabled : true } ) ;
109- assert . strictEqual ( testFunction . calledWithMatch ( { focused : false } ) , true ) ;
108+ assert . strictEqual ( testFunction . args [ 2 ] [ 0 ] . focused , false ) ;
110109 } ) ;
111110 } ) ;
112111
@@ -119,7 +118,7 @@ describe('<FormControl />', () => {
119118 < TestComponent fn = { testFunction } />
120119 </ FormControl > ,
121120 ) ;
122- assert . strictEqual ( testFunction . calledWithMatch ( { filled : true } ) , true ) ;
121+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . filled , true ) ;
123122 } ) ;
124123
125124 it ( 'should be filled with a defaultValue' , ( ) => {
@@ -130,7 +129,7 @@ describe('<FormControl />', () => {
130129 < TestComponent fn = { testFunction } />
131130 </ FormControl > ,
132131 ) ;
133- assert . strictEqual ( testFunction . calledWithMatch ( { filled : true } ) , true ) ;
132+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . filled , true ) ;
134133 } ) ;
135134
136135 it ( 'should not be adornedStart with an endAdornment' , ( ) => {
@@ -141,7 +140,7 @@ describe('<FormControl />', () => {
141140 < TestComponent fn = { testFunction } />
142141 </ FormControl > ,
143142 ) ;
144- assert . strictEqual ( testFunction . calledWithMatch ( { adornedStart : false } ) , true ) ;
143+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . adornedStart , false ) ;
145144 } ) ;
146145
147146 it ( 'should be adornedStar with a startAdornment' , ( ) => {
@@ -152,7 +151,7 @@ describe('<FormControl />', () => {
152151 < TestComponent fn = { testFunction } />
153152 </ FormControl > ,
154153 ) ;
155- assert . strictEqual ( testFunction . calledWithMatch ( { adornedStart : true } ) , true ) ;
154+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . adornedStart , true ) ;
156155 } ) ;
157156 } ) ;
158157
@@ -165,7 +164,7 @@ describe('<FormControl />', () => {
165164 < TestComponent fn = { testFunction } />
166165 </ FormControl > ,
167166 ) ;
168- assert . strictEqual ( testFunction . calledWithMatch ( { adornedStart : false } ) , true ) ;
167+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . adornedStart , false ) ;
169168 } ) ;
170169
171170 it ( 'should be adorned with a startAdornment' , ( ) => {
@@ -176,7 +175,7 @@ describe('<FormControl />', () => {
176175 < TestComponent fn = { testFunction } />
177176 </ FormControl > ,
178177 ) ;
179- assert . strictEqual ( testFunction . calledWithMatch ( { adornedStart : true } ) , true ) ;
178+ assert . strictEqual ( testFunction . args [ 0 ] [ 0 ] . adornedStart , true ) ;
180179 } ) ;
181180 } ) ;
182181
0 commit comments