Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Dec 22, 2024
1 parent 20bf06f commit 817d340
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/radiator/resources_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,17 @@ defmodule Radiator.ResourcesbTest do
url_text = "https://hexdocs.pm"
node = OutlineFixtures.node_fixture()
old_url = url_fixture(node_id: node.uuid)
episode_id = node.episode_id

assert [%Url{url: ^url_text, start_bytes: 42, size_bytes: 42}] =
assert [%Url{url: ^url_text, start_bytes: 42, size_bytes: 42, episode_id: ^episode_id}] =
Resources.rebuild_node_urls(node.uuid, [
%{url: url_text, start_bytes: 42, size_bytes: 42}
%{
url: url_text,
start_bytes: 42,
size_bytes: 42,
node_id: node.uuid,
episode_id: episode_id
}
])

assert_raise Ecto.NoResultsError, fn -> Resources.get_url!(old_url.id) end
Expand Down

0 comments on commit 817d340

Please sign in to comment.