Skip to content

Commit f52e5fe

Browse files
committed
Fix "it should use function body as a string" to work
1 parent 8b3714d commit f52e5fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

koans/AboutFunctions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ describe("About Functions", function() {
103103
//An internal comment
104104
return a * b;
105105
};
106-
expect(multiply.toString()).toBe('function (a, b) { //An internal comment
107-
return a * b; }');
106+
expect(multiply.toString()).toBe('function (a, b) {' + '\n' + ' //An internal comment' + '\n' + ' return a * b;' + '\n' + ' }');
108107
});
109108
});

0 commit comments

Comments
 (0)