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.

api: two test files that the test command never ran

Boris 'B' Kurktchiev1e901f7ab821
diff --git a/api/push-messages.test.js b/api/test/push-messages.test.js
similarity index 92%
rename from api/push-messages.test.js
rename to api/test/push-messages.test.js
index 51bd67872..a1c85a51b 100644
--- a/api/push-messages.test.js
+++ b/api/test/push-messages.test.js
@@ -1,6 +1,6 @@
import test from 'node:test';
import assert from 'node:assert/strict';
-import { dayReminderPush, restTimerPush, testPush } from './push-messages.js';
+import { dayReminderPush, restTimerPush, testPush } from '../push-messages.js';
test('localizes every server-generated notification in pt-BR', () => {
assert.deepEqual(restTimerPush('pt-BR'), {
diff --git a/api/verify-error.test.js b/api/test/verify-error.test.js
similarity index 96%
rename from api/verify-error.test.js
rename to api/test/verify-error.test.js
index 928d17c71..933d8aae5 100644
--- a/api/verify-error.test.js
+++ b/api/test/verify-error.test.js
@@ -1,6 +1,6 @@
import test from 'node:test';
import assert from 'node:assert/strict';
-import { verifyError } from './verify-error.js';
+import { verifyError } from '../verify-error.js';
const cfg = { rpId: 'gym.example.com', origin: 'https://gym.example.com' };