chore: added more @spec

This commit is contained in:
2026-05-01 17:49:50 +02:00
parent abcae1dad7
commit 881056eb61
157 changed files with 6223 additions and 1647 deletions

View File

@@ -38,7 +38,8 @@ defmodule BDS.CliSyncTest do
:ok = Watcher.poll_now(watcher)
assert_receive {:entity_changed, %{entity: "post", entity_id: "post-1", action: :updated}}, 500
assert_receive {:entity_changed, %{entity: "post", entity_id: "post-1", action: :updated}},
500
seen_notification = Repo.get!(BDS.CliSync.Notification, notification.id)
assert is_integer(seen_notification.seen_at)
@@ -76,7 +77,9 @@ defmodule BDS.CliSyncTest do
assert {:ok, %{processed: 1, unprocessed: 1}} = CliSync.prune_notifications(now)
remaining_ids = Repo.all(from notification in BDS.CliSync.Notification, select: notification.entity_id)
remaining_ids =
Repo.all(from notification in BDS.CliSync.Notification, select: notification.entity_id)
assert remaining_ids == ["fresh"]
end
end