1
- @testable import Auth
2
1
import CustomDump
3
- @ testable import Functions
2
+ import InlineSnapshotTesting
4
3
import IssueReporting
4
+ import SnapshotTestingCustomDump
5
+ import XCTest
6
+
7
+ @testable import Auth
8
+ @testable import Functions
5
9
@testable import Realtime
6
10
@testable import Supabase
7
- import XCTest
8
- import InlineSnapshotTesting
9
- import SnapshotTestingCustomDump
10
11
11
12
final class AuthLocalStorageMock : AuthLocalStorage {
12
13
func store( key _: String , value _: Data ) throws { }
@@ -75,6 +76,10 @@ final class SupabaseClientTests: XCTestCase {
75
76
]
76
77
"""
77
78
}
79
+ expectNoDifference ( client. headers, client. auth. configuration. headers)
80
+ expectNoDifference ( client. headers, client. functions. headers. dictionary)
81
+ expectNoDifference ( client. headers, client. storage. configuration. headers)
82
+ expectNoDifference ( client. headers, client. rest. configuration. headers)
78
83
79
84
XCTAssertEqual ( client. functions. region, " ap-northeast-1 " )
80
85
@@ -83,7 +88,8 @@ final class SupabaseClientTests: XCTestCase {
83
88
84
89
let realtimeOptions = client. realtimeV2. options
85
90
let expectedRealtimeHeader = client. _headers. merging ( with: [
86
- . init( " custom_realtime_header_key " ) !: " custom_realtime_header_value " ]
91
+ . init( " custom_realtime_header_key " ) !: " custom_realtime_header_value "
92
+ ]
87
93
)
88
94
expectNoDifference ( realtimeOptions. headers, expectedRealtimeHeader)
89
95
XCTAssertIdentical ( realtimeOptions. logger as? Logger , logger)
0 commit comments