feat: engagment notifications

This commit is contained in:
2026-05-26 11:55:39 +02:00
parent df94a23a19
commit f716a205ce
13 changed files with 65 additions and 24 deletions
+3 -1
View File
@@ -43,6 +43,8 @@ it('creates one review per user for a meal post', function () {
});
it('sends a push notification to the meal owner when another user comments on their meal', function () {
config()->set('app.mobile_scheme', 'dailymeal');
Http::fake([
'https://exp.host/*' => Http::response([
'data' => [
@@ -77,7 +79,7 @@ it('sends a push notification to the meal owner when another user comments on th
'sound' => 'default',
'channelId' => 'default',
'data' => [
'url' => "bowly://meals/{$mealPost->id}",
'url' => "dailymeal://meals/{$mealPost->id}",
],
],
]);