spec/linner/wrapper_spec.rb in linner-0.4.4 vs spec/linner/wrapper_spec.rb in linner-0.4.5
- old
+ new
@@ -3,10 +3,10 @@
describe Wrapper do
before(:each) do
@name = "app"
@script = 'module.exports = function() {return console.log("log from app!");};'
- @expected_script = 'window.require.define({"app":' +
+ @expected_script = 'this.require.define({"app":' +
'function(exports, require, module){' +
'module.exports = function() {' +
'return console.log("log from app!");' +
'};' +
";}});\n"