@@ -134,14 +134,14 @@ describe("exhangeAuthCode", () => {
134
134
StorageKeys . codeVerifier ,
135
135
) ;
136
136
expect ( postCodeVerifier ) . toBeNull ( ) ;
137
- expect ( fetchMock ) . toHaveBeenCalledTimes ( 1 ) ;
138
- const [ url , options ] = fetchMock . mock . calls [ 0 ] ;
139
- expect ( url ) . toBe ( "http://test.kinde.com/oauth2/token" ) ;
140
- expect ( options ) . toMatchObject ( {
141
- method : "POST" ,
142
- headers : {
143
- "Content-type" : "application/x-www-form-urlencoded; charset=UTF-8" ,
144
- } ,
137
+ expect ( fetchMock ) . toHaveBeenCalledTimes ( 1 ) ;
138
+ const [ url , options ] = fetchMock . mock . calls [ 0 ] ;
139
+ expect ( url ) . toBe ( "http://test.kinde.com/oauth2/token" ) ;
140
+ expect ( options ) . toMatchObject ( {
141
+ method : "POST" ,
142
+ headers : {
143
+ "Content-type" : "application/x-www-form-urlencoded; charset=UTF-8" ,
144
+ } ,
145
145
} ) ;
146
146
} ) ;
147
147
@@ -180,16 +180,15 @@ describe("exhangeAuthCode", () => {
180
180
redirectURL : "http://test.kinde.com" ,
181
181
} ) ;
182
182
183
- expect ( fetchMock ) . toHaveBeenCalledTimes ( 1 ) ;
184
- const [ url , options ] = fetchMock . mock . calls [ 0 ] ;
185
- expect ( url ) . toBe ( "http://test.kinde.com/oauth2/token" ) ;
186
- expect ( options ) . toMatchObject ( {
187
- method : "POST" ,
188
- headers : {
189
- "Content-type" : "application/x-www-form-urlencoded; charset=UTF-8" ,
190
- "Kinde-SDK" : "Framework/Version" ,
191
- } ,
183
+ expect ( fetchMock ) . toHaveBeenCalledTimes ( 1 ) ;
184
+ const [ url , options ] = fetchMock . mock . calls [ 0 ] ;
185
+ expect ( url ) . toBe ( "http://test.kinde.com/oauth2/token" ) ;
186
+ expect ( options ) . toMatchObject ( {
187
+ method : "POST" ,
188
+ headers : {
189
+ "Content-type" : "application/x-www-form-urlencoded; charset=UTF-8" ,
190
+ "Kinde-SDK" : "Framework/Version" ,
191
+ } ,
192
192
} ) ;
193
193
} ) ;
194
-
195
194
} ) ;
0 commit comments