Skip to content

Commit

Permalink
udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-akya committed Jan 3, 2025
1 parent edf6394 commit 7e4797d
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions test/vix/vips/livebook_render_test.exs
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

0 comments on commit 7e4797d

Please sign in to comment.