Permalink
Browse files

added test for setting function to new function on client

  • Loading branch information...
1 parent 7e5c48d commit 6e1c5727ee6c51a5e266002bba1078e667127b3f @ericz ericz committed Nov 10, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 client/public/spec/VariableSpec.js
@@ -178,6 +178,15 @@ describe("Variable Sync", function() {
expect(now.x.y.a).toEqual(1);
});
+ runs(function(){
+ now.j = function(){};
+ });
+ waits(1000);
+ runs(function(){
+ now.j = function(){2};
+ expect(typeof now.j).toEqual("function");
+ });
+
});

0 comments on commit 6e1c572

Please sign in to comment.