feat: translation codes
This commit is contained in:
@@ -37,7 +37,7 @@ it('creates one review per user for a meal post', function () {
|
||||
'rating' => 4,
|
||||
])
|
||||
->assertConflict()
|
||||
->assertJsonPath('message', __('api.post_reviews.already_exists'));
|
||||
->assertJsonPath('code', 'MEAL_REVIEW_ALREADY_EXISTS');
|
||||
|
||||
expect(PostReviews::query()->count())->toBe(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user