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.

test: assert cleared progression steps are omitted

Manuel9216aa2f02f3
diff --git a/frontend/src/sheets.test.jsx b/frontend/src/sheets.test.jsx
index df52ca7bc..fed2b47e7 100644
--- a/frontend/src/sheets.test.jsx
+++ b/frontend/src/sheets.test.jsx
@@ -64,6 +64,6 @@ describe('exercise configuration progression step', () => {
const emptySave = [...empty.host.querySelectorAll('button')]
.find(b => /^(save|add to routine)$/i.test(b.textContent.trim()))
act(() => { emptySave.click() })
- expect(empty.onSave).toHaveBeenCalledWith(expect.not.objectContaining({ inc: expect.anything() }))
+ expect(empty.onSave.mock.calls[0][0]).not.toHaveProperty('inc')
})
})