@@ -9,7 +9,7 @@ import PaginationTransformer from '../core/PaginationTransformer'
99import { merge } from '../util/objects'
1010
1111let proxy : PostProxy
12- let mockAdapter
12+ let mockAdapter : MockAdapter
1313let validator : ValidatorType
1414
1515describe ( 'BaseProxy' , ( ) => {
@@ -23,7 +23,7 @@ describe('BaseProxy', () => {
2323 } )
2424
2525 it ( 'check if http was installed' , async ( ) => {
26- BaseProxy . $http = null
26+ BaseProxy . $http = undefined
2727 try {
2828 await proxy . all ( )
2929 } catch ( e ) {
@@ -201,7 +201,7 @@ describe('BaseProxy', () => {
201201
202202 it ( 'transforms the data to a FormData object if there is a File' , async ( ) => {
203203 const file = new File ( [ 'hello world!' ] , 'myfile' )
204- const form = { field1 : { } , field2 : { } , files : [ ] }
204+ const form : any = { field1 : { } , field2 : { } , files : [ ] }
205205 form . field1 = {
206206 foo : 'testFoo' ,
207207 bar : [ 'testBar1' , 'testBar2' ] ,
@@ -267,7 +267,7 @@ describe('BaseProxy', () => {
267267
268268 it ( 'transforms the boolean values in FormData object to "1" or "0"' , async ( ) => {
269269 const file = new File ( [ 'hello world!' ] , 'myfile' )
270- const form = { field1 : { } , field2 : null }
270+ const form : any = { field1 : { } , field2 : null }
271271 form . field1 = {
272272 foo : true ,
273273 bar : false ,
@@ -357,9 +357,9 @@ describe('BaseProxy', () => {
357357 } )
358358} )
359359
360- function getFormDataKeys ( formData ) {
360+ function getFormDataKeys ( formData : any ) {
361361 // This is because the FormData.keys() is missing from the jsdom implementations.
362362 return formData [ Object . getOwnPropertySymbols ( formData ) [ 0 ] ] . _entries . map (
363- ( e ) => e . name ,
363+ ( e : any ) => e . name ,
364364 )
365365}
0 commit comments