From be55e07fed6f39705a94e225306f8930bd165dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20K=C3=B6tte?= Date: Sat, 13 Jul 2024 15:23:23 -0700 Subject: [PATCH] Add tests --- .../LedgerLookupTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/SwiftBeanCountWealthsimpleMapperTests/LedgerLookupTests.swift b/Tests/SwiftBeanCountWealthsimpleMapperTests/LedgerLookupTests.swift index 67b0201..eee637e 100644 --- a/Tests/SwiftBeanCountWealthsimpleMapperTests/LedgerLookupTests.swift +++ b/Tests/SwiftBeanCountWealthsimpleMapperTests/LedgerLookupTests.swift @@ -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]))