feat: implementation of step 5 of the plan - still not fully done
This commit is contained in:
@@ -315,6 +315,19 @@ defmodule BDS.UI.ShellTest do
|
||||
refute live_ex =~ "defp update_post_editor_expanded("
|
||||
end
|
||||
|
||||
test "desktop shell keeps media editor logic in the feature slice" do
|
||||
live_ex = File.read!("/Users/gb/Projects/bDS2/lib/bds/desktop/shell_live.ex")
|
||||
template = File.read!("/Users/gb/Projects/bDS2/lib/bds/desktop/shell_live/index.html.heex")
|
||||
media_editor_ex = File.read!("/Users/gb/Projects/bDS2/lib/bds/desktop/shell_live/media_editor.ex")
|
||||
|
||||
assert template =~ "<MediaEditor.media_editor"
|
||||
assert media_editor_ex =~ "def build(%{current_tab: %{type: :media, id: media_id}} = assigns)"
|
||||
|
||||
refute live_ex =~ "defp update_media_editor("
|
||||
refute live_ex =~ "defp persist_media_editor("
|
||||
refute live_ex =~ "defp delete_media_editor("
|
||||
end
|
||||
|
||||
test "desktop shell keeps sidebar logic in its own slice" do
|
||||
live_ex = File.read!("/Users/gb/Projects/bDS2/lib/bds/desktop/shell_live.ex")
|
||||
template = File.read!("/Users/gb/Projects/bDS2/lib/bds/desktop/shell_live/index.html.heex")
|
||||
|
||||
Reference in New Issue
Block a user