feat: translation codes
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user