Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
radeknovis committed Dec 28, 2023
1 parent 63a5872 commit a7a8529
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Tests/WalletConnectModalTests/ExplorerAPITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ final class ExplorerAPITests: XCTestCase {
let request = Web3ModalAPI
.getWallets(
params: .init(
page: 0,
entries: 0,
page: 2,
entries: 40,
search: "",
projectId: "123",
metadata: .stub(),
Expand All @@ -21,13 +21,16 @@ final class ExplorerAPITests: XCTestCase {
.resolve(for: "www.google.com")

XCTAssertEqual(request?.allHTTPHeaderFields?["Referer"], "Wallet Connect")
XCTAssertEqual(request?.allHTTPHeaderFields?["x-sdk-version"], WalletConnectModal.Config.sdkVersion)
XCTAssertEqual(request?.allHTTPHeaderFields?["x-sdk-type"], "wcm")
XCTAssertEqual(request?.allHTTPHeaderFields?["x-project-id"], "123")

XCTAssertEqual(request?.url?.queryParameters, [
"projectId": "123",
"recommendedIds": "foo,bar",
"page": "2",
"entries": "40",
"platform": "ios",
"excludedIds": "boo,far",
"sdkVersion": EnvironmentInfo.sdkName,
"sdkType": "wcm"
])
}
}
Expand Down

0 comments on commit a7a8529

Please sign in to comment.