feat(defter): haftanın girişleri, düzenle/sil + geri al, haftalık özet
- Girişler gün gün, gün toplamıyla; satırda kategori, grup, ödeme türü, açıklama - Düzenleme aynı formda (sürüm kontrolü, pasif kategori korunur) - Silmede "Geri al" bildirimi; grup bazlı bütçe / harcanan / kalan özeti Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import {
|
||||
formatWeekday,
|
||||
formatDate,
|
||||
formatMoney,
|
||||
formatNumber,
|
||||
@@ -67,3 +68,11 @@ describe('parseMoney', () => {
|
||||
expect(parseMoney('19,99')).toBe(1999)
|
||||
})
|
||||
})
|
||||
|
||||
describe('formatWeekday', () => {
|
||||
it('Türkçe gün adı, saat diliminden bağımsız', () => {
|
||||
expect(formatWeekday('2026-11-12')).toBe('Perşembe')
|
||||
expect(formatWeekday('2026-11-01')).toBe('Pazar')
|
||||
expect(formatWeekday('2026-11-02')).toBe('Pazartesi')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user