Fixed testReadingExistingNonJsonFile by reading an actual non-json file

pull/6739/head
Jerome Chan 2 years ago
parent 72e72a5de5
commit bb0ab9aa6c
  1. 8
      AlphaWalletTests/Tokens/TokenGroupIdentifierTest.swift

@ -11,19 +11,13 @@ import AlphaWalletFoundation
class TokenGroupIdentifierTest: XCTestCase {
override func setUpWithError() throws {
}
override func tearDownWithError() throws {
}
func testReadingExistingFile() throws {
let reader: TokenGroupIdentifierProtocol? = TokenGroupIdentifier.identifier(tokenJsonUrl: R.file.tokensJson()!)
XCTAssertNotNil(reader)
}
func testReadingExistingNonJsonFile() throws {
let reader: TokenGroupIdentifierProtocol? = TokenGroupIdentifier.identifier(tokenJsonUrl: R.file.tokensJson()!)
let reader: TokenGroupIdentifierProtocol? = TokenGroupIdentifier.identifier(tokenJsonUrl: R.file.chainsZip()!)
XCTAssertNil(reader)
}

Loading…
Cancel
Save