1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

More specific test name

This commit is contained in:
Joshua Peek 2015-02-03 13:43:41 -08:00
parent e31d86e82a
commit 1bf999b0fd

View file

@ -220,8 +220,11 @@ class TestExecJS < Test
assert_equal true, ExecJS.exec("return this === (function() {return this})()") assert_equal true, ExecJS.exec("return this === (function() {return this})()")
end end
def test_commonjs_vars_are_undefined def test_node_global_is_undefined
assert ExecJS.eval("typeof global == 'undefined'") assert ExecJS.eval("typeof global == 'undefined'")
end
def test_commonjs_vars_are_undefined
assert ExecJS.eval("typeof module == 'undefined'") assert ExecJS.eval("typeof module == 'undefined'")
assert ExecJS.eval("typeof exports == 'undefined'") assert ExecJS.eval("typeof exports == 'undefined'")
assert ExecJS.eval("typeof require == 'undefined'") assert ExecJS.eval("typeof require == 'undefined'")