We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c1c228 commit af33773Copy full SHA for af33773
test/test_execjs.rb
@@ -56,6 +56,16 @@ def test_call_with_complex_properties
56
assert_equal 2, context.call("(function(bar) { return foo + bar })", 1)
57
end
58
59
+ def test_call_with_env_file
60
+ Dir.mktmpdir do |dir|
61
+ Dir.chdir(dir) do
62
+ # Bun prints on STDOUT when loading .env files
63
+ File.write(".env", "FOO=BAR")
64
+ assert_equal 2, ExecJS.eval("1 + 1")
65
+ end
66
67
68
+
69
def test_call_with_this
70
# Known bug: https://github.com/cowboyd/therubyrhino/issues/39
71
skip if ExecJS.runtime.is_a?(ExecJS::RubyRhinoRuntime)
0 commit comments