1
0
Fork 0

Finished correcting assertion tests with new implementation

closure/master
Mike Gerwitz 2010-12-27 22:20:29 -05:00
parent 46dbf56658
commit 69391f9b48
2 changed files with 8 additions and 8 deletions

View File

@ -185,12 +185,6 @@ exports.propParse = function( data, options )
name = parse_data.name || prop; name = parse_data.name || prop;
keywords = parse_data.keywords || {}; keywords = parse_data.keywords || {};
// if an 'each' callback was provided, pass the data before parsing it
if ( callback_each )
{
callback_each.call( callback_each, name, value );
}
if ( keywords['abstract'] ) if ( keywords['abstract'] )
{ {
if ( value instanceof Array ) if ( value instanceof Array )
@ -203,6 +197,12 @@ exports.propParse = function( data, options )
} }
} }
// if an 'each' callback was provided, pass the data before parsing it
if ( callback_each )
{
callback_each.call( callback_each, name, value );
}
// getter/setter // getter/setter
if ( getter || setter ) if ( getter || setter )
{ {

View File

@ -177,7 +177,7 @@ assert.throws(
AbstractFoo.extend( AbstractFoo.extend(
{ {
// incorrect number of arguments // incorrect number of arguments
method: abstractMethod(), 'abstract method': [],
}); });
}, },
TypeError, TypeError,
@ -190,7 +190,7 @@ assert.doesNotThrow(
AbstractFoo.extend( AbstractFoo.extend(
{ {
// incorrect number of arguments // incorrect number of arguments
method: abstractMethod( 'one', 'two', 'three', 'four' ), 'abstract method': [ 'one', 'two', 'three', 'four' ],
}); });
}, },
Error, Error,