diff --git a/test/fixtures/global/plain.js b/test/fixtures/global/plain.js index ae187c29fb..a9d4d9180e 100644 --- a/test/fixtures/global/plain.js +++ b/test/fixtures/global/plain.js @@ -1,6 +1,4 @@ foo = "foo"; global.bar = "bar"; -exports.fooBar = function () { - return {foo: global.foo, bar: bar}; -}; +exports.fooBar = {foo: global.foo, bar:bar}; \ No newline at end of file diff --git a/test/simple/test-global.js b/test/simple/test-global.js index 0e9ec7df23..ce4d3e8df0 100644 --- a/test/simple/test-global.js +++ b/test/simple/test-global.js @@ -9,7 +9,7 @@ assert.equal("foo", global.baseFoo, "x -> global.x in base level not working"); assert.equal("bar", baseBar, "global.x -> x in base level not working"); var module = require("../fixtures/global/plain"), - fooBar = module.fooBar(); + fooBar = module.fooBar; assert.equal("foo", fooBar.foo, "x -> global.x in sub level not working");