Skip to content

Commit 95efb4b

Browse files
committed
Test FFI JavaScript file moved to output folder
1 parent f5b09cb commit 95efb4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/compiler_test.exs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,12 @@ defmodule ElixirScript.Compiler.Test do
5252
result = ElixirScript.Compiler.compile(Atom, [output: path])
5353
assert File.exists?(path)
5454
end
55+
56+
test "Output with FFI" do
57+
path = System.tmp_dir()
58+
59+
result = ElixirScript.Compiler.compile(Main, [output: path])
60+
assert File.exists?(Path.join([path, "Elixir.App.js"]))
61+
assert File.exists?(Path.join([path, "data", "json.js"]))
62+
end
5563
end

0 commit comments

Comments
 (0)