5
5
// Created by Guilherme Souza on 07/10/23.
6
6
//
7
7
8
- @testable import Auth
9
8
import Helpers
10
9
import InlineSnapshotTesting
11
10
import SnapshotTesting
12
11
import TestHelpers
13
12
import XCTest
14
13
14
+ @testable import Auth
15
+
15
16
#if canImport(FoundationNetworking)
16
17
import FoundationNetworking
17
18
#endif
@@ -126,7 +127,7 @@ final class RequestsTests: XCTestCase {
126
127
url,
127
128
URL (
128
129
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 "
130
131
) !
131
132
)
132
133
}
@@ -152,7 +153,7 @@ final class RequestsTests: XCTestCase {
152
153
153
154
let url = URL (
154
155
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 "
156
157
) !
157
158
158
159
let session = try await sut. session ( from: url)
@@ -173,7 +174,7 @@ final class RequestsTests: XCTestCase {
173
174
174
175
let url = URL (
175
176
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 "
177
178
) !
178
179
179
180
do {
@@ -430,7 +431,8 @@ final class RequestsTests: XCTestCase {
430
431
Dependencies [ sut. clientID] . sessionStorage. store ( . validSession)
431
432
432
433
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 " ) )
434
436
}
435
437
}
436
438
@@ -480,7 +482,8 @@ final class RequestsTests: XCTestCase {
480
482
Dependencies [ sut. clientID] . sessionStorage. store ( . validSession)
481
483
482
484
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 " ) )
484
487
}
485
488
}
486
489
0 commit comments