Skip to content

Commit

Permalink
Minor test Add testGetChainId
Browse files Browse the repository at this point in the history
  • Loading branch information
DelevoXDG committed Jan 29, 2024
1 parent 8c778f8 commit e82e7aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/StarknetTests/Providers/ProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ final class ProviderTests: XCTestCase {
XCTAssertNotNil(starknetProvider)
}

func testGetChainId() async throws {
let chainId = try await provider.getChainId()

XCTAssertEqual(chainId, .goerli)
}

func testSpecVersion() async throws {
let result = try await provider.specVersion()
XCTAssertFalse(result.isEmpty)
Expand Down

0 comments on commit e82e7aa

Please sign in to comment.