Skip to content

Commit 43636b3

Browse files
committed
Remove test json ffi module
1 parent 95efb4b commit 43636b3

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

test/compiler_test.exs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ defmodule ElixirScript.Compiler.Test do
66
assert is_binary(result)
77
end
88

9-
test "Use defined module with FFI module" do
10-
result = ElixirScript.Compiler.compile(Main)
11-
assert is_binary(result)
12-
assert result =~ "import Data_JSON from './data/json'"
13-
end
14-
159
test "Can compile multiple entry modules" do
1610
result = ElixirScript.Compiler.compile([Atom, String, Agent])
1711
assert is_binary(result)
@@ -52,12 +46,4 @@ defmodule ElixirScript.Compiler.Test do
5246
result = ElixirScript.Compiler.compile(Atom, [output: path])
5347
assert File.exists?(path)
5448
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
6349
end

test/support/json.ex

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/support/main.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
defmodule Main do
22
def start(:normal, [callback]) do
33
callback.("started")
4-
5-
Data.JSON.stringify(1)
64
end
75
end

0 commit comments

Comments
 (0)