From 4ae7bfece3e72bf429d94bc223491591ce843574 Mon Sep 17 00:00:00 2001 From: Robert Lucas <100799838+Robert-M-Lucas@users.noreply.github.com> Date: Sat, 27 Apr 2024 23:28:10 +0100 Subject: [PATCH] Fixed test --- src/utils/user_prefs.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/user_prefs.test.ts b/src/utils/user_prefs.test.ts index 6ab94d1..5651651 100644 --- a/src/utils/user_prefs.test.ts +++ b/src/utils/user_prefs.test.ts @@ -14,7 +14,7 @@ describe("Firestore UserPrefs Tests", () => { expect(_.isEqual(prefs, UserPrefs.default()), "Non-existent UserPrefs should return default").toBeTruthy(); - prefs.goal = 213; + const new_prefs = UserPrefs.newChecked(0.4, 0.2); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error @@ -24,7 +24,7 @@ describe("Firestore UserPrefs Tests", () => { // @ts-expect-error const read_prefs = await getUserPrefs(user); - console.log(prefs); + console.log(new_prefs); console.log(read_prefs); expect(_.isEqual(read_prefs, prefs), "UserPref changes to be read").toBeTruthy();