mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
style: run prettier on the health-score fast-path test file
This commit is contained in:
1 parent
c256d945b3
commit
58fddeb0d6
1 file changed
+2
-6
@@ -459,15 +459,11 @@ describe("computeUserHealthScoreFastPath", () => {
|
||||
const now = new Date("2026-06-07T12:00:00.000Z");
|
||||
|
||||
// No weight rows, no BP rows, no medications.
|
||||
MEASUREMENT_FIND_MANY.mockResolvedValueOnce([]).mockResolvedValueOnce(
|
||||
[],
|
||||
);
|
||||
MEASUREMENT_FIND_MANY.mockResolvedValueOnce([]).mockResolvedValueOnce([]);
|
||||
// Exactly one mood entry — below the 5-entry stability floor, so
|
||||
// moodStability() resolves to null even though the raw row count
|
||||
// is nonzero.
|
||||
MOOD_FIND_MANY.mockResolvedValue([
|
||||
{ score: 4, moodLoggedAt: now },
|
||||
]);
|
||||
MOOD_FIND_MANY.mockResolvedValue([{ score: 4, moodLoggedAt: now }]);
|
||||
|
||||
const result = await computeUserHealthScoreFastPath({
|
||||
userId: "user-one-mood-entry",
|
||||
|
||||
Reference in new issue
Block a user