more TS fixes + tests
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m41s

This commit is contained in:
2025-11-29 16:22:45 -08:00
parent aae0875e2b
commit 020edfc675

View File

@@ -102,7 +102,7 @@ describe('Budget Routes (/api/budgets)', () => {
describe('POST /', () => {
it('should create a new budget and return it', async () => {
const newBudgetData = { name: 'Entertainment', amount_cents: 10000, period: 'monthly', start_date: '2024-01-01' };
const newBudgetData = { name: 'Entertainment', amount_cents: 10000, period: 'monthly' as const, start_date: '2024-01-01' };
const mockCreatedBudget: Budget = { budget_id: 2, user_id: 'user-123', ...newBudgetData };
mockedDb.createBudget.mockResolvedValue(mockCreatedBudget);