-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edf6394
commit 7e4797d
Showing
1 changed file
with
1 addition
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,3 @@ | ||
if Code.ensure_loaded?(Kino.Render) do | ||
defmodule Vix.Vips.LivebookRenderTest do | ||
use ExUnit.Case, async: true | ||
|
||
alias Vix.Vips.Image | ||
|
||
import Vix.Support.Images | ||
|
||
test "Rendering livebook metadata and image" do | ||
IO.inspect("kino #1") | ||
|
||
Application.ensure_all_started(:kino) | ||
|> dbg() | ||
|
||
IO.inspect("kino #2") | ||
assert {:ok, %Image{ref: _ref} = image} = Image.new_from_file(img_path("puppies.jpg")) | ||
IO.inspect("kino #3") | ||
|
||
assert %{ | ||
type: :grid, | ||
boxed: false, | ||
columns: 1, | ||
gap: 8, | ||
outputs: [ | ||
%{content: _, mime_type: "image/png", type: :image}, | ||
%{export: false, type: :js} | ||
] | ||
} = Kino.Render.to_livebook(image) | ||
|
||
IO.inspect("kino #4") | ||
end | ||
end | ||
:ok | ||
end |