more TS fixes + tests
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m41s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m41s
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user