Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

fix warmup 1RM test equality

root9cc645c7555d
diff --git a/frontend/src/lib/onerm.test.js b/frontend/src/lib/onerm.test.js
index 57c6ec030..59a4f9e96 100644
--- a/frontend/src/lib/onerm.test.js
+++ b/frontend/src/lib/onerm.test.js
@@ -157,7 +157,7 @@ describe('warm-up sets and 1RM', () => {
it('does not let a ticked-off warm-up set set or raise the estimated 1RM', () => {
const working = { id: 'warm-test', sets: [{ w: 80, r: 5, done: true }] }
expect(bestSetOf(ENTRY)).toEqual(bestSetOf(working))
- expect(best1RM({ workouts: [{ entries: [ENTRY] }] }, 'warm-test')).toBe(
+ expect(best1RM({ workouts: [{ entries: [ENTRY] }] }, 'warm-test')).toEqual(
best1RM({ workouts: [{ entries: [working] }] }, 'warm-test'),
)
})