Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nef10 committed Jul 13, 2024
1 parent b600498 commit be55e07
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ final class LedgerLookupTests: XCTestCase {
// not found
assert(try ledgerLookup.ledgerAccountName(for: .rounding, in: TestAccount(number: number), ofType: [.income]),
throws: WealthsimpleConversionError.missingAccount(MetaDataKeys.rounding, number, "Income"))
assert(try ledgerLookup.ledgerAccountName(for: .transactionType(.dividend), in: TestAccount(number: number), ofType: [.income]),
throws: WealthsimpleConversionError.missingAccount("\(MetaDataKeys.prefix)\(TransactionType.dividend)", number, "Income"))

// rounding
try ledger.add(Account(name: accountName, metaData: [MetaDataKeys.rounding: number]))
Expand Down

0 comments on commit be55e07

Please sign in to comment.