Browse Source

fixed failing unit test

Torkel Ödegaard 11 years ago
parent
commit
da13de6af5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/test/specs/gfunc-specs.js

+ 3 - 2
src/test/specs/gfunc-specs.js

@@ -20,8 +20,9 @@ define([
     });
 
     it('should return func instance from funcDef', function() {
-      var func = gfunc.createFuncInstance(func.def);
-      expect(func).to.be.ok();
+      var func = gfunc.createFuncInstance('sum');
+      var func2 = gfunc.createFuncInstance(func.def);
+      expect(func2).to.be.ok();
     });
 
     it('func instance should have text representation', function() {