Commits

Gianni Chiappetta committed 43c3cee

fixed: Accidental variable leak in test helper.

  • Participants
  • Parent commits 2201dba

Comments (0)

Files changed (1)

File tests/commandtransformer.qunit.html

 }
 
 function makeMock( cmd ) {
-  return mocks =
-    { view: {}
-    , data: { history: [ cmd || "//lib(jquery)" ], get_typed_history: function(){ return this.history } }
-    , service: { output: [], evaluate_input: function( input ){ this.output.push( input ) } }
-    }
+  return { view: {}
+         , data: { history: [ cmd || "//lib(jquery)" ], get_typed_history: function(){ return this.history } }
+         , service: { output: [], evaluate_input: function( input ){ this.output.push( input ) } }
+         }
 }
 
 test("is_call smoketest", function() {