Jelajahi Sumber

Removed excess `method` declarations on download and upload APIs in test suite.

Christian Noon 9 tahun lalu
induk
melakukan
bc2f0aa91c
2 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 1
      Tests/DownloadTests.swift
  2. 0 1
      Tests/UploadTests.swift

+ 1 - 1
Tests/DownloadTests.swift

@@ -210,7 +210,7 @@ class DownloadResponseTestCase: BaseTestCase {
         var response: DefaultDownloadResponse?
 
         // When
-        Alamofire.download(urlString, method: .get, headers: headers, to: destination)
+        Alamofire.download(urlString, headers: headers, to: destination)
             .response { resp in
                 response = resp
                 expectation.fulfill()

+ 0 - 1
Tests/UploadTests.swift

@@ -282,7 +282,6 @@ class UploadMultipartFormDataTestCase: BaseTestCase {
                 formData = multipartFormData
             },
             to: urlString,
-            method: .post,
             encodingCompletion: { result in
                 switch result {
                 case .success(let upload, _, _):