Skip to content

Commit

Permalink
run swiftformat
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlocke committed Dec 15, 2023
1 parent 2ef6b0c commit 526f782
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MockApiRequest: ApiRequest {

extension MockApiRequest {
func handleMockInput(_ mockInput: MockInput) throws {
try self._handleMockInput(mockInput)
try _handleMockInput(mockInput)
}
}

Expand Down
2 changes: 1 addition & 1 deletion TestSwiftyDropbox/IntegrationTests/ObjC/ObjCTestData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ open class DBXTestData: NSObject {
@objc static var testIdTeam: String { get { TestData.testIdTeam } set { TestData.testIdTeam = newValue } }
@objc static var groupName: String { get { TestData.groupName } set { TestData.groupName = newValue } }
@objc static var groupExternalId: String { get { TestData.groupExternalId } set { TestData.groupExternalId = newValue } }
@objc static var groupExternalIdDashObjc: String { get { TestData.groupExternalId + "-objc" } }
@objc static var groupExternalIdDashObjc: String { TestData.groupExternalId + "-objc" }

@objc static var teamMemberEmail: String { get { TestData.teamMemberEmail } set { TestData.teamMemberEmail = newValue } }
@objc static var newMemberEmail: String { get { TestData.newMemberEmail } set { TestData.newMemberEmail = newValue } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ActionRequestHandler: NSObject, NSExtensionRequestHandling {
client = DropboxClientsManager.authorizedClient
}

TestUtilities.createFileToUpload(sizeInKBs: 1000)
TestUtilities.createFileToUpload(sizeInKBs: 1_000)
let fileName = "/test_action_extension.txt"
let path = TestConstants.dropboxTestFolder + fileName
let input = TestConstants.fileToUpload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct BlueButton: ButtonStyle {
.font(.caption)
.fontWeight(.bold)
.padding()
.background(configuration.isPressed ? .indigo : .blue )
.background(configuration.isPressed ? .indigo : .blue)
.foregroundStyle(.white)
.clipShape(Capsule())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class FileBrowserViewModel: ObservableObject {

do {
let fileURLs = try fileManager.contentsOfDirectory(at: localURL, includingPropertiesForKeys: nil)
files = fileURLs.sorted(by: { $0.lastPathComponent < $1.lastPathComponent })
self.files = fileURLs.sorted(by: { $0.lastPathComponent < $1.lastPathComponent })
} catch {
print("Error loading files: \(error)")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public class SecureStorageAccessTestImpl: SecureStorageAccess {
}

public func deleteInfo(for key: String) -> Bool {
return true
true
}

public func deleteInfoForAllKeys() -> Bool {
return true
true
}
}
14 changes: 12 additions & 2 deletions TestSwiftyDropbox/TestSwiftyDropbox_iOSTests/TeamRoutesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,19 @@ class TeamRoutesTests: XCTestCase {
DropboxOAuthManager.sharedOAuthManager = nil

#if os(OSX)
DropboxClientsManager.setupWithTeamAppKeyMultiUserDesktop(apiAppKey, transportClient: transportClient, secureStorageAccess: SecureStorageAccessTestImpl(), tokenUid: TestUid)
DropboxClientsManager.setupWithTeamAppKeyMultiUserDesktop(
apiAppKey,
transportClient: transportClient,
secureStorageAccess: SecureStorageAccessTestImpl(),
tokenUid: TestUid
)
#elseif os(iOS)
DropboxClientsManager.setupWithTeamAppKeyMultiUser(apiAppKey, transportClient: transportClient, secureStorageAccess: SecureStorageAccessTestImpl(), tokenUid: TestUid)
DropboxClientsManager.setupWithTeamAppKeyMultiUser(
apiAppKey,
transportClient: transportClient,
secureStorageAccess: SecureStorageAccessTestImpl(),
tokenUid: TestUid
)
#endif

teamClient = DropboxClientsManager.authorizedTeamClient?.team
Expand Down

0 comments on commit 526f782

Please sign in to comment.