55// Created by Guilherme Souza on 07/10/23.
66//
77
8- @testable import Auth
98import Helpers
109import InlineSnapshotTesting
1110import SnapshotTesting
1211import TestHelpers
1312import XCTest
1413
14+ @testable import Auth
15+
1516#if canImport(FoundationNetworking)
1617 import FoundationNetworking
1718#endif
@@ -126,7 +127,7 @@ final class RequestsTests: XCTestCase {
126127 url,
127128 URL (
128129 string:
129- " http://localhost:54321/auth/v1/authorize?provider=github&scopes=read,write&redirect_to=https://dummy-url.com/redirect&extra_key=extra_value "
130+ " http://localhost:54321/auth/v1/authorize?provider=github&scopes=read,write&redirect_to=https://dummy-url.com/redirect&extra_key=extra_value "
130131 ) !
131132 )
132133 }
@@ -152,7 +153,7 @@ final class RequestsTests: XCTestCase {
152153
153154 let url = URL (
154155 string:
155- " https://dummy-url.com/callback#access_token=accesstoken&expires_in=60&refresh_token=refreshtoken&token_type=bearer "
156+ " https://dummy-url.com/callback#access_token=accesstoken&expires_in=60&refresh_token=refreshtoken&token_type=bearer "
156157 ) !
157158
158159 let session = try await sut. session ( from: url)
@@ -173,7 +174,7 @@ final class RequestsTests: XCTestCase {
173174
174175 let url = URL (
175176 string:
176- " https://dummy-url.com/callback#access_token=accesstoken&expires_in=60&refresh_token=refreshtoken "
177+ " https://dummy-url.com/callback#access_token=accesstoken&expires_in=60&refresh_token=refreshtoken "
177178 ) !
178179
179180 do {
@@ -430,7 +431,8 @@ final class RequestsTests: XCTestCase {
430431 Dependencies [ sut. clientID] . sessionStorage. store ( . validSession)
431432
432433 await assert {
433- _ = try await sut. mfa. enroll ( params: MFAEnrollParams ( issuer: " supabase.com " , friendlyName: " test " ) )
434+ _ = try await sut. mfa. enroll (
435+ params: MFAEnrollParams ( issuer: " supabase.com " , friendlyName: " test " ) )
434436 }
435437 }
436438
@@ -480,7 +482,8 @@ final class RequestsTests: XCTestCase {
480482 Dependencies [ sut. clientID] . sessionStorage. store ( . validSession)
481483
482484 await assert {
483- _ = try await sut. mfa. verify ( params: . init( factorId: " 123 " , challengeId: " 123 " , code: " 123456 " ) )
485+ _ = try await sut. mfa. verify (
486+ params: . init( factorId: " 123 " , challengeId: " 123 " , code: " 123456 " ) )
484487 }
485488 }
486489
0 commit comments