Skip to content

Commit 27ad9ab

Browse files
committed
Removed troublesome function koan. Fixes mrdavidlaing#9. Fixes mrdavidlaing#10.
Determined "should use function body as a string" is causes more problems than the understanding it provides. If someone can think of a good replacement, submit it, it has been removed until then.
1 parent 6e9e0d1 commit 27ad9ab

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

koans/AboutFunctions.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,4 @@ describe("About Functions", function() {
9797
expect(praiseSinger.givePraise("Mary")).toBe(FILL_ME_IN);
9898

9999
});
100-
101-
it("should use function body as a string", function () {
102-
var add = new Function("a", "b", "return a + b;");
103-
expect(add(1, 2)).toBe(FILL_ME_IN);
104-
105-
var multiply = function (a, b) {
106-
//An internal comment
107-
return a * b;
108-
};
109-
expect(multiply.toString()).toBe(FILL_ME_IN);
110-
});
111100
});

0 commit comments

Comments
 (0)