livebook/test/livebook/explore_test.exs
Jonatan Kłosko 11246cdb8f
Add an option to preload session images from memory (#329)
* Add an option to preload session images from memory

* Remove images
2021-06-08 13:28:53 +02:00

18 lines
507 B
Elixir

defmodule Livebook.ExploreTest do
use ExUnit.Case, async: true
alias Livebook.Notebook
alias Livebook.Notebook.Explore
describe "notebook_by_slug!/1" do
test "returns notebook structure and images if found" do
assert {%Notebook{}, _imaegs} = Explore.notebook_by_slug!("intro-to-livebook")
end
test "raises an error if no matching notebook if found" do
assert_raise Explore.NotFoundError, fn ->
Explore.notebook_by_slug!("invalid-slug")
end
end
end
end