From ae2d5b95879a814b4c746f80b9a29ee6c8a90781 Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Sun, 24 Nov 2024 11:26:35 +0100 Subject: [PATCH] chore: format code --- .swift-format | 1 + Tests/Common/DisposableFactory.swift | 3 +-- Tests/SnapshotsTests.swift | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.swift-format b/.swift-format index 71b901a..1ab0d1e 100644 --- a/.swift-format +++ b/.swift-format @@ -1,5 +1,6 @@ { "version": 1, + "lineLength": 120, "indentation": { "spaces": 4 } diff --git a/Tests/Common/DisposableFactory.swift b/Tests/Common/DisposableFactory.swift index 62fd2c9..e965c93 100644 --- a/Tests/Common/DisposableFactory.swift +++ b/Tests/Common/DisposableFactory.swift @@ -24,8 +24,7 @@ class DisposableFactory { self.client = client } - func organization(_ options: VOOrganization.CreateOptions) async throws -> VOOrganization.Entity - { + func organization(_ options: VOOrganization.CreateOptions) async throws -> VOOrganization.Entity { let organization = try await client.organization.create(options) organizations.append(organization) return organization diff --git a/Tests/SnapshotsTests.swift b/Tests/SnapshotsTests.swift index d1a4046..bce2ade 100644 --- a/Tests/SnapshotsTests.swift +++ b/Tests/SnapshotsTests.swift @@ -210,9 +210,7 @@ final class SnapshotsTests: XCTestCase { || file.snapshot!.thumbnail!.image!.height == 512) } - func checkDocumentFlow(forResource resource: String, withExtension fileExtension: String) - async throws - { + func checkDocumentFlow(forResource resource: String, withExtension fileExtension: String) async throws { guard let factory = try? await DisposableFactory.withCredentials() else { failedToCreateFactory() return