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:
parent
e31d86e82a
commit
1bf999b0fd
1 changed files with 4 additions and 1 deletions
|
@ -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'")
|
||||||
|
|
Loading…
Reference in a new issue