Skip to content

Commit aad2899

Browse files
committed
fix: address warnings
1 parent e00be7f commit aad2899

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

apps/expert/test/engine/engine_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ defmodule EngineTest do
1616
end
1717

1818
def engine_cwd(project) do
19-
EngineApi.call(project, File, :cwd!, [])
19+
project
20+
|> EngineApi.call(File, :cwd!, [])
2021
|> normalize_path_separators()
2122
end
2223

apps/forge/lib/test/fixtures.ex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ defmodule Forge.Test.Fixtures do
1111
end
1212

1313
def project(project_name) do
14-
base_path = __ENV__.file || Path.join([File.cwd!(), "test", "fixtures"])
15-
16-
[Path.dirname(base_path), "..", "..", "test/fixtures", to_string(project_name)]
14+
[Path.dirname(__ENV__.file), "..", "..", "test/fixtures", to_string(project_name)]
1715
|> Path.join()
1816
|> Path.expand()
1917
|> Forge.Document.Path.to_uri()

0 commit comments

Comments
 (0)