Skip to content
Browse files

Corrected combine-test throws and doesNotThrow assertions

Did not properly permit empty second argument
  • Loading branch information...
1 parent 84dd675 commit ff07b4f456bf45aa23ba7467ca6768b71157be54 @mikegerwitz committed Feb 2, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/combine-test.tpl
View
4 tools/combine-test.tpl
@@ -132,6 +132,8 @@ module.assert = { exports: {
'throws': function ( test, expected, err )
{
+ expected = expected || Error;
+
try
{
test();
@@ -148,6 +150,8 @@ module.assert = { exports: {
doesNotThrow: function ( test, not_expected, err )
{
+ not_expected = not_expected || Error;
+
try
{
test();

0 comments on commit ff07b4f

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