Skip to content

Commit

Permalink
Fix test types
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdoming committed Jan 2, 2025
1 parent c4d5822 commit 07e4fab
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/loot-core/src/server/budget/goalsSchedule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ describe('goalsSchedule', () => {
it('should return correct budget when recurring schedule set', async () => {
// Given
const scheduleFlag = false;
const template_lines = [{ type: 'schedule', name: 'Test Schedule' }];
const template_lines = [
{
type: 'schedule',
name: 'Test Schedule',
directive: '#template schedule Test Schedule',
} as const,
];
const current_month = '2024-08-01';
const balance = 0;
const remainder = 0;
Expand Down Expand Up @@ -86,7 +92,13 @@ describe('goalsSchedule', () => {
it('should return correct budget when yearly recurring schedule set and balance is greater than target', async () => {
// Given
const scheduleFlag = false;
const template_lines = [{ type: 'schedule', name: 'Test Schedule' }];
const template_lines = [
{
type: 'schedule',
name: 'Test Schedule',
directive: '#template schedule Test Schedule',
} as const,
];
const current_month = '2024-09-01';
const balance = 12000;
const remainder = 0;
Expand Down

0 comments on commit 07e4fab

Please sign in to comment.