Corrected combine-test throws and doesNotThrow assertions
Did not properly permit empty second argumentperfodd
parent
84dd6757bb
commit
ff07b4f456
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue