File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,19 +9,20 @@ defmodule Mix.Tasks.Desktop.InstallTest do
99 + | {:desktop,
1010 """ )
1111 |> assert_has_patch ( "lib/my_app/application.ex" , """
12- - | MyAppWeb.Endpoint
13- + | MyAppWeb.Endpoint,
14- + | {Desktop.Window,
15- + | [
16- + | app: :my_app,
17- + | id: MyApp.MainWindow,
18- + | title: "my_app",
19- + | size: {600, 500},
20- + | icon: "icon.png",
21- + | menubar: MyApp.MenuBar,
22- + | icon_menu: MyApp.Menu,
23- + | url: {MyAppWeb.Endpoint, :url, []}
24- + | ]}
12+ - | MyAppWeb.Endpoint
13+ + | MyAppWeb.Endpoint,
14+ + | {Desktop.Window,
15+ + | [
16+ + | app: :my_app,
17+ + | id: MyApp.MainWindow,
18+ + | title: "my_app",
19+ + | size: {600, 500},
20+ + | menubar: MyApp.MenuBar,
21+ + | icon_menu: MyApp.Menu,
22+ + | url: &MyAppWeb.Endpoint.url/0
23+ + | ]}
2524 """ )
25+ |> Igniter.Test . assert_creates ( "lib/my_app/menu.ex" )
26+ |> Igniter.Test . assert_creates ( "lib/my_app/menu_bar.ex" )
2627 end
2728end
You can’t perform that action at this time.
0 commit comments