Skip to content
Browse files

- Removed "invalid function" exception that doesn't seem to be possi…

…ble, for

    100% code coverage
  • Loading branch information...
1 parent b0c8652 commit 8014a34d02a06ab1fc0a69e9ab0ef90194894287 @atesgoral committed Apr 4, 2009
Showing with 2 additions and 4 deletions.
  1. +2 −0 jsunity/CHANGES.txt
  2. +0 −4 jsunity/jsunity.js
View
2 jsunity/CHANGES.txt
@@ -1,3 +1,5 @@
+ - Removed "invalid function" exception that doesn't seem to be possible, for
+ 100% code coverage
- Bound the test suite object on setUp and tearDown calls
0.6
View
4 jsunity/jsunity.js
@@ -181,10 +181,6 @@ jsUnity = (function () {
/^[\s\r\n]*function[\s\r\n]*([^\(\s\r\n]*?)[\s\r\n]*\([^\)\s\r\n]*\)[\s\r\n]*\{((?:[^}]*\}?)+)\}[\s\r\n]*$/
.exec(fn);
- if (!tokens) {
- throw "Invalid function.";
- }
-
return {
name: tokens[1].length ? tokens[1] : undefined,
body: tokens[2]

0 comments on commit 8014a34

Please sign in to comment.
Something went wrong with that request. Please try again.