test(habits): Add test coverage for HabitsService methods (createHabit, updateHabit, getHabits) with mocks and assertions

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-03-25 23:20:00 -07:00
parent 372c868f32
commit a7398b0155

View file

@ -7,7 +7,7 @@ import { Habit } from '../entities/habit.entity';
import { HabitCheckIn } from '../entities/habit-check-in.entity';
import { mockRepository, MockRepository } from '@test-helpers/mock-repository';
import { makeHabit, makeHabitCheckIn } from '@test-helpers/factories';
import { ProjectResolverService } from '@features/projects/backend/project-resolver.service';
import { ProjectResolverService } from '@projects/productivity/projects/backend/project-resolver.service';
import { mockProjectResolverService } from '@test-helpers/mock-project-resolver';
import { CheckInStatus } from '@life-platform/shared';