Skip to content

Commit

Permalink
Added a address test
Browse files Browse the repository at this point in the history
Signed-off-by: kcw-grunt <mrkerrywashington@icloud.com>
  • Loading branch information
kcw-grunt committed Jan 18, 2024
1 parent 7728444 commit 4a8d1a4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion litewalletTests/Constants Tests/ConstantsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import XCTest

class ConstantsTests: XCTestCase {
func testLFDonationAddressPage() throws {
XCTAssertTrue(FoundationSupport.dashboard == "https://litecoinfoundation.zendesk.com/")
XCTAssertTrue(FoundationSupport.dashboard == "https://support.litewallet.io/")
}
}
17 changes: 17 additions & 0 deletions litewalletTests/Legacy BRTests/BRAddressTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@testable import litewallet
import XCTest

class BRAddressTests: XCTestCase {
private let walletManager: WalletManager = try! WalletManager(store: Store(), dbPath: nil)
var newAddress: String = ""

func testNewAddressGeneration() throws {
if let address = walletManager.wallet?.receiveAddress {
newAddress = address
XCTAssertTrue(newAddress == "")
XCTAssertTrue(newAddress.isValidAddress)
} else {
XCTAssertNil(walletManager.wallet?.receiveAddress)
}
}
}
5 changes: 0 additions & 5 deletions litewalletTests/Legacy BRTests/WalletInfoTest.swift

This file was deleted.

0 comments on commit 4a8d1a4

Please sign in to comment.