feat: translation codes
CI / 🧪 Tests Laravel (push) Successful in 2m34s
CI / 🐳 Build & Push Images (push) Successful in 2m26s

This commit is contained in:
2026-08-14 12:46:29 +02:00
parent 69372a49ed
commit 8b60283eeb
28 changed files with 59 additions and 62 deletions
+2 -2
View File
@@ -174,7 +174,7 @@ it('keeps the local strava connection when strava revocation fails temporarily',
$this
->deleteJson('/api/strava/connection')
->assertStatus(502)
->assertJsonPath('message', __('api.strava.disconnect_failed'));
->assertJsonPath('code', 'STRAVA_DISCONNECT_FAILED');
expect($user->fresh()->stravaConnection)->not->toBeNull();
});
@@ -295,5 +295,5 @@ it('requires an activity read scope before syncing strava activities', function
$this
->postJson('/api/strava/sync')
->assertUnprocessable()
->assertJsonPath('message', __('api.strava.missing_activity_scope'));
->assertJsonPath('code', 'STRAVA_ACTIVITY_SCOPE_MISSING');
});