Skip to content

Commit e2fe3be

Browse files
committed
Update tests
1 parent fd25c88 commit e2fe3be

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

test/mix/tasks/desktop.install_test.exs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff 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
2728
end

0 commit comments

Comments
 (0)