feat(borç): aylık planda bu ayın borcu, borç ödemesi etiketi, taksit önerisi

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 04:47:59 +03:00
parent c063186e80
commit dbed3da1b1
12 changed files with 376 additions and 9 deletions
+14
View File
@@ -79,3 +79,17 @@ describe('debt (backend ile aynı, kabul rakamları)', () => {
])
})
})
describe('plan integration', () => {
it('finds the installments expense item by name', async () => {
const { findInstallmentItem } = await import('./debt')
const items = [
{ kind: 'income', name: 'Taksitler' },
{ kind: 'expense', name: 'Kira' },
{ kind: 'expense', name: ' TAKSİTLER ' },
]
expect(findInstallmentItem(items)?.name).toBe(' TAKSİTLER ')
expect(findInstallmentItem([{ kind: 'expense', name: 'Taksit' }])).toBeTruthy()
expect(findInstallmentItem([{ kind: 'expense', name: 'Taksitli alışveriş' }])).toBeUndefined()
})
})