From a7a8529820db78b13f40b56df2d5cafb13dcad8e Mon Sep 17 00:00:00 2001 From: Radek Novak Date: Thu, 28 Dec 2023 16:57:25 +0100 Subject: [PATCH] Fix tests --- .../WalletConnectModalTests/ExplorerAPITests.swift | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Tests/WalletConnectModalTests/ExplorerAPITests.swift b/Tests/WalletConnectModalTests/ExplorerAPITests.swift index 6ee709e9c..26bdb83e9 100644 --- a/Tests/WalletConnectModalTests/ExplorerAPITests.swift +++ b/Tests/WalletConnectModalTests/ExplorerAPITests.swift @@ -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(), @@ -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" ]) } }