diff --git a/lib/kino/test.ex b/lib/kino/test.ex index fb0774b8..c4df05c3 100644 --- a/lib/kino/test.ex +++ b/lib/kino/test.ex @@ -114,18 +114,6 @@ defmodule Kino.Test do send(kino.pid, {:event, event, payload, %{origin: inspect(self())}}) end - @doc """ - Sends an editor source event to a `Kino.JS.Live` kino. - - ## Examples - - push_editor_source(kino, "source code") - - """ - def push_editor_source(kino, source_code) do - send(kino.pid, {:editor_source, source_code}) - end - @doc """ Connects to a `Kino.JS.Live` kino and returns the initial data. @@ -197,4 +185,19 @@ defmodule Kino.Test do unquote(timeout) end end + + @doc """ + Sends a changed smart cell editor source to a `Kino.JS.Live` kino. + + This is going to call `c:Kino.SmartCell.handle_editor_change/2` implementation + in the smart cell module. + + ## Examples + + push_smart_cell_editor_source(kino, "source code") + + """ + def push_smart_cell_editor_source(kino, source) do + send(kino.pid, {:editor_source, source}) + end end